From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGJNH-0003rI-KD for qemu-devel@nongnu.org; Thu, 24 Aug 2006 13:52:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGJND-0003jw-Mv for qemu-devel@nongnu.org; Thu, 24 Aug 2006 13:52:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGJND-0003jL-HM for qemu-devel@nongnu.org; Thu, 24 Aug 2006 13:52:11 -0400 Received: from [68.142.206.136] (helo=web33404.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1GGJVJ-0004mY-R1 for qemu-devel@nongnu.org; Thu, 24 Aug 2006 14:00:34 -0400 Message-ID: <20060824175206.29882.qmail@web33404.mail.mud.yahoo.com> Date: Thu, 24 Aug 2006 10:52:06 -0700 (PDT) From: ByteRage Subject: Re: [Qemu-devel] qemu dynamic translation (system design) question In-Reply-To: <3ed52ec0608190200y7627bdeeib8ba9c8c3d7e5c66@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 --- "S.P.T.Krishnan" wrote: > a. How does qemu slice the guest binary into blocks > ? any rational or rule of thumb here ? As far as I understand the source code, the end of every translated block is at a control transfer instruction or when a maximum translation block length has been reached. You can grep for "gen_eob" in the translate.c source code of any particular target (fe i386/translate.c) to see the points at which an end of block is generated and the blocks are sliced. It may also be helpful to let qemu write the input & output asm code of translated blocks to a log file (qemu -d in_asm, out_asm) for better understanding how it works under the hood, by watching how the blocks are being generated/sliced on the fly. cheers, Joachim De Zutter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com