From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53640 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhQnk-0006FA-Dt for qemu-devel@nongnu.org; Mon, 24 Jan 2011 13:06:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhQne-0003Bp-RV for qemu-devel@nongnu.org; Mon, 24 Jan 2011 13:06:00 -0500 Received: from smtp2.iitd.ernet.in ([202.141.68.44]:39923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhQne-00030o-97 for qemu-devel@nongnu.org; Mon, 24 Jan 2011 13:05:58 -0500 Message-ID: <4D3DBEC8.5090903@cse.iitd.ac.in> Date: Mon, 24 Jan 2011 23:32:48 +0530 From: Dushyant Bansal MIME-Version: 1.0 Subject: Re: [Qemu-devel] TCG flow vs dyngen References: <000001cbb58c$221f5a00$011aa8c0@side35ya3cah0n> <4D330D01.9060801@gmail.com> <4D3CA28C.5080907@landley.net> <4D3D9334.6050801@gmail.com> In-Reply-To: <4D3D9334.6050801@gmail.com> Content-Type: multipart/alternative; boundary="------------020900080205090306010208" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Bonifazi Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------020900080205090306010208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On Monday 24 January 2011 08:26 PM, Stefano Bonifazi wrote: > On 01/24/2011 03:32 PM, Peter Maydell wrote: >> >> Being a JIT doesn't prohibit counting target instructions executed. >> It just means that counting them generally requires generating >> code to do the counting at runtime, so it's a more complicated >> change to make than it would be in a non-JIT emulator. >> > What do you mean? Should I change the code of qemu-user for counting > the instructions, or should I add code into the target binaries? You should see this pdf (www.ecs.syr.edu/faculty/yin/Teaching/TC2010/Proj4.pdf). It talks about tracing the instructions. -- Dushyant --------------020900080205090306010208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday 24 January 2011 08:26 PM, Stefano Bonifazi wrote:
On 01/24/2011 03:32 PM, Peter Maydell wrote:

Being a JIT doesn't prohibit counting target instructions executed.
It just means that counting them generally requires generating
code to do the counting at runtime, so it's a more complicated
change to make than it would be in a non-JIT emulator.

What do you mean? Should I change the code of qemu-user for counting the instructions, or should I add code into the target binaries?
You should see this pdf (www.ecs.syr.edu/faculty/yin/Teaching/TC2010/Proj4.pdf). It talks about tracing the instructions.

--
Dushyant
--------------020900080205090306010208--