Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jh8fD-0001PQ-VH for qemu-devel@nongnu.org; Wed, 02 Apr 2008 15:30:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jh8fC-0001PE-F3 for qemu-devel@nongnu.org; Wed, 02 Apr 2008 15:30:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jh8fC-0001P7-Ba for qemu-devel@nongnu.org; Wed, 02 Apr 2008 15:30:26 -0400 Received: from postfix.iai.uni-bonn.de ([131.220.8.4]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jh8fC-00082q-1J for qemu-devel@nongnu.org; Wed, 02 Apr 2008 15:30:26 -0400 Received: from [134.95.23.89] (dhcp89-23.dfnroamingweb.rrz.uni-koeln.de [134.95.23.89]) by postfix.iai.uni-bonn.de (Postfix) with ESMTP id 1EAAB5C818 for ; Wed, 2 Apr 2008 21:28:22 +0200 (MEST) (envelope-from goffart@cs.uni-bonn.de) (envelope-to qemu-devel@nongnu.org) (1) (internal use: ta=1, tu=1, te=1, am=P, au=goffart) From: Klaus Goffart Content-Type: text/plain Date: Wed, 02 Apr 2008 21:28:19 +0200 Message-Id: <1207164499.9736.32.camel@goffart-laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Instruction trace for ARM target 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 Hi, I would like to generate an instruction trace for an ARM target. I applied the patch from Stuart Brady posted in this thread http://thread.gmane.org/gmane.comp.emulators.qemu/16604 to the corresponding "arm-target/*" files. It seems to work fine and generates a trace of pc values. But, I'm not sure if these are all pc values. I do not completely understand the way the helper_dump_pc() method is called, but it seems that it is triggered in the disas_insn() respectively the disas_arm_insn() method. But isn't each instruction just disassembled once and then cached for the next execution? Then the corresponding pc values would be missing. To get the instructions being executed I call the ldl_code() method with the actual pc value in the helper_dump_pc() method. It seems to work, but it would be great if anybody could just point out if this is correct. My next step is to mark those instructions that are not executed due to their condition codes and the memory accessed by executed instructions. But I have no idea where this information is available. Can anybody give me a clue? I appreciate any help! Thanks, Klaus