Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fg0HS-0006Km-AB for qemu-devel@nongnu.org; Tue, 16 May 2006 10:12:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fg0HN-0006KO-Jk for qemu-devel@nongnu.org; Tue, 16 May 2006 10:12:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fg0HN-0006KK-AC for qemu-devel@nongnu.org; Tue, 16 May 2006 10:12:05 -0400 Received: from [202.165.103.51] (helo=web15906.mail.cnb.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1Fg0K0-000250-Km for qemu-devel@nongnu.org; Tue, 16 May 2006 10:14:49 -0400 Message-ID: <20060516141155.42362.qmail@web15906.mail.cnb.yahoo.com> Date: Tue, 16 May 2006 22:11:55 +0800 (CST) From: jie li MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] How qemu resolve the code cache? 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 As I know that there is difference between accessing data segment and code segment under x86.Because there are cs and ds register to control this. If we do this: memcpy(datasegment,code segment,size),we will get wrong results. How can I copy some instructions from cs segment to ds segment.How qemu do this ,thx! ___________________________________________________________ ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ http://cn.mail.yahoo.com/