Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3wS7-00043y-7P for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:07:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3wS6-00043P-GF for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:07:10 -0400 Received: from [199.232.76.173] (port=41749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3wS6-00043B-9Q for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:07:10 -0400 Received: from savannah.gnu.org ([199.232.41.3]:47909 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 1K3wS5-0008QN-RW for qemu-devel@nongnu.org; Wed, 04 Jun 2008 13:07:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K3wS5-0004c9-1e for qemu-devel@nongnu.org; Wed, 04 Jun 2008 17:07:09 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K3wS4-0004c5-QV for qemu-devel@nongnu.org; Wed, 04 Jun 2008 17:07:08 +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:07:08 +0000 Subject: [Qemu-devel] [4663] GIF flag handling fix (Alexander Graf) 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: 4663 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4663 Author: bellard Date: 2008-06-04 17:07:08 +0000 (Wed, 04 Jun 2008) Log Message: ----------- GIF flag handling fix (Alexander Graf) Modified Paths: -------------- trunk/target-i386/op_helper.c Modified: trunk/target-i386/op_helper.c =================================================================== --- trunk/target-i386/op_helper.c 2008-06-04 17:02:19 UTC (rev 4662) +++ trunk/target-i386/op_helper.c 2008-06-04 17:07:08 UTC (rev 4663) @@ -4908,7 +4908,7 @@ break; } - helper_stgi(); + env->hflags2 |= HF2_GIF_MASK; if (int_ctl & V_IRQ_MASK) { env->interrupt_request |= CPU_INTERRUPT_VIRQ; @@ -5266,7 +5266,7 @@ stq_phys(env->vm_vmcb + offsetof(struct vmcb, control.exit_code), exit_code); stq_phys(env->vm_vmcb + offsetof(struct vmcb, control.exit_info_1), exit_info_1); - helper_clgi(); + env->hflags2 &= ~HF2_GIF_MASK; /* FIXME: Resets the current ASID register to zero (host ASID). */ /* Clears the V_IRQ and V_INTR_MASKING bits inside the processor. */