Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXU7X-0007Lk-LS for qemu-devel@nongnu.org; Mon, 17 Sep 2007 23:51:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXU7V-0007LY-5C for qemu-devel@nongnu.org; Mon, 17 Sep 2007 23:51:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXU7V-0007LV-06 for qemu-devel@nongnu.org; Mon, 17 Sep 2007 23:51:29 -0400 Received: from web53807.mail.re2.yahoo.com ([206.190.36.202]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IXU7U-0007Xq-Fl for qemu-devel@nongnu.org; Mon, 17 Sep 2007 23:51:28 -0400 Date: Mon, 17 Sep 2007 20:51:27 -0700 (PDT) From: "Wang,zhi" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <508221.13765.qm@web53807.mail.re2.yahoo.com> Subject: [Qemu-devel] [help] When T0 is updated to last exectued TB 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, =0AI am a newcomer to QEMU. I am trying to understand the QEMU code. I = am a little bit confused about the following code about chaining TBs with d= irect jump (cpu-exec.c, line 611, I edited it to remove #ifdef to make it c= lear to discussion): =0A if (T0 !=3D 0 && tb->page_addr[1] = =3D=3D -1 ) {=0A spin_lock(&tb_lock);=0A = tb_add_jump((TranslationBlock *)(long)(T0 & ~3), T0 & 3, tb);=0A = spin_unlock(&tb_lock);=0A }=0A=0ASay, if I am c= ompile an i386-softmmu target on i386 host, T0 is %ebx. From the code, T0 s= hould contain the point to the last executed translation block. I checked m= any code but couldn't find where T0 is updated to the last executed block. = Is there anyone willing to give me a hint? Thanks=0A=0A=0APangy=0A=0A=0A=0A= =0A_________________________________________________________________= ___________________=0ABoardwalk for $500? In 2007? Ha! Play Monopoly Here a= nd Now (it's updated for today's economy) at Yahoo! Games.=0Ahttp://get.gam= es.yahoo.com/proddesc?gamekey=3Dmonopolyherenow