Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3wXS-0006lN-9J for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:12:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3wXR-0006l9-RD for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:12:41 -0400 Received: from [199.232.76.173] (port=45725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3wXR-0006l5-Lv for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:12:41 -0400 Received: from savannah.gnu.org ([199.232.41.3]:59126 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3wXR-0000zS-DN for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:12:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K3wXQ-0005O4-KZ for qemu-devel@nongnu.org; Wed, 04 Jun 2008 17:12:40 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K3wXQ-0005Nv-DT for qemu-devel@nongnu.org; Wed, 04 Jun 2008 17:12:40 +0000 MIME-Version: 1.0 Errors-To: bellard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fabrice Bellard Message-Id: Date: Wed, 04 Jun 2008 17:12:40 +0000 Subject: [Qemu-devel] [4664] fixed exceptions for cpuid and invlpg 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 Revision: 4664 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4664 Author: bellard Date: 2008-06-04 17:12:40 +0000 (Wed, 04 Jun 2008) Log Message: ----------- fixed exceptions for cpuid and invlpg Modified Paths: -------------- trunk/target-i386/translate.c Modified: trunk/target-i386/translate.c =================================================================== --- trunk/target-i386/translate.c 2008-06-04 17:07:08 UTC (rev 4663) +++ trunk/target-i386/translate.c 2008-06-04 17:12:40 UTC (rev 4664) @@ -6407,6 +6407,9 @@ break; #endif case 0x1a2: /* cpuid */ + if (s->cc_op != CC_OP_DYNAMIC) + gen_op_set_cc_op(s->cc_op); + gen_jmp_im(pc_start - s->cs_base); tcg_gen_helper_0_0(helper_cpuid); break; case 0xf4: /* hlt */ @@ -6700,6 +6703,9 @@ goto illegal_op; } } else { + if (s->cc_op != CC_OP_DYNAMIC) + gen_op_set_cc_op(s->cc_op); + gen_jmp_im(pc_start - s->cs_base); gen_lea_modrm(s, modrm, ®_addr, &offset_addr); tcg_gen_helper_0_1(helper_invlpg, cpu_A0); gen_jmp_im(s->pc - s->cs_base);