From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHM5h-0000Pq-Er for qemu-devel@nongnu.org; Fri, 11 Jul 2008 13:07:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHM5g-0000PW-4f for qemu-devel@nongnu.org; Fri, 11 Jul 2008 13:07:29 -0400 Received: from [199.232.76.173] (port=50064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHM5f-0000PT-UD for qemu-devel@nongnu.org; Fri, 11 Jul 2008 13:07:27 -0400 Received: from server1linux.rebelnetworks.com ([66.135.44.167]:58140) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHM5g-00006b-1V for qemu-devel@nongnu.org; Fri, 11 Jul 2008 13:07:28 -0400 From: Julian Seward Subject: Re: [Qemu-devel] [4799] Add instruction counter. Date: Fri, 11 Jul 2008 18:59:29 +0200 References: <4876957D.9030502@earthlink.net> In-Reply-To: <4876957D.9030502@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807111859.29718.jseward@acm.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paul Brook , Robert Reif On Friday 11 July 2008 01:04, Robert Reif wrote: > running under valgrind produces this: > > valgrind --trace-children=yes qemu-system-sparc -kernel > vmlinux-2.6.11+tcx -initrd linux.img -append "root=/dev/ram" Minor side-note. When running qemu on valgrind, you should give valgrind the --smc-check=all flag, so that it correctly handles the situation where qemu generates new code into an area where previously there was other code (iow, after the TB is flushed). Otherwise all hell breaks loose (in Valgrind-land). I have the impression that this became much more important after Paul Brook's recent changes to support a deterministic time base, since those cause qemu to much more frequently retranslate blocks that contain I/O instructions. (Or something like that ...) J