From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40786 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou2sx-0000J2-Ab for qemu-devel@nongnu.org; Fri, 10 Sep 2010 08:39:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou2ss-0005Cu-Gw for qemu-devel@nongnu.org; Fri, 10 Sep 2010 08:39:19 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:56298) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou2ss-0005Cb-AX for qemu-devel@nongnu.org; Fri, 10 Sep 2010 08:39:14 -0400 Received: from smtp04.web.de ( [172.20.0.225]) by fmmailgate01.web.de (Postfix) with ESMTP id 3BB36167CA830 for ; Fri, 10 Sep 2010 14:39:12 +0200 (CEST) Received: from [87.79.236.126] (helo=[192.168.1.4]) by smtp04.web.de with asmtp (WEB.DE 4.110 #24) id 1Ou2sq-0008Jk-00 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 14:39:12 +0200 Message-ID: <4C8A26EE.1090500@web.de> Date: Fri, 10 Sep 2010 14:39:10 +0200 From: Robert Peter MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: robert1peter@web.de Subject: [Qemu-devel] Tracing TranslationBlocks to file List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello! I am trying to modify Qemu to trace the executed BasicBlocks and their lengths to a file. The host platform is x86_64, quest is arm-softmmu. Currently I am passing the current TranslationBlock from gen_intermediate_code_internal() to disas_arm_insn() in "target-arm/translate.c". The TranslationBlock's pc and size field are writte to a file in disas_arm_insn(). Unfortunately, "size" is 0 in most cases. Is this correct? Additionally, I am wondering if "size" represents the TB's size before or after translation (in ARM or x86 code). Any help would be greatly appreciated! Thanks, Robert