From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frank Ch. Eigler" To: sid@sources.redhat.com Subject: sidcpuutil.h patch: memory poisoning Date: Wed, 10 Jan 2001 11:48:00 -0000 Message-id: <20010110144846.D4485@redhat.com> X-SW-Source: 2001-q1/msg00026.html 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-----