public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* sidcpuutil.h patch: memory poisoning
@ 2001-01-10 11:48 Frank Ch. Eigler
  0 siblings, 0 replies; only message in thread
From: Frank Ch. Eigler @ 2001-01-10 11:48 UTC (permalink / raw)
  To: sid

Hi -

I just committed a patch to sidcpuutil.h which will let one
diagnose earlier the lack of sufficient initialization in the
cpu model classes' constructors and reset functions.  Previously,
especially on Linux, it happened that many bytes of newly allocated
cpu objects were zero.  On other platforms (Cygwin) or in circumstances
(running under dejagnu vs. standalone), this was often not true, and
lead to strange failures.

Now, the utility base class explicitly clobbers all newly allocated
memory for the CPU object.  This way, ports that are forgetful in
initializing especially the CGEN-side this->hardware will show up
as attempts to manipulate registers containing 0xdeadbeef.  Please
check your port after applying this patch, and let me know if it
helps uncover latent problems.

- FChE
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6XLyeVZbdDOm/ZT0RAnkMAJ95UDG6pVMpnBwVXHrWVq1Ryuf/2wCfRPrv
krse/lwc8puEHSWK8/Wstzw=
=kJfE
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-10 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-10 11:48 sidcpuutil.h patch: memory poisoning Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).