summaryrefslogtreecommitdiff
path: root/target-i386/op.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-25 14:58:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-25 14:58:58 +0000
commitacf5feac80a3edb2d6cfaee40ae53ac90f789578 (patch)
treeadc545feb2f90ae22eda9deff29e5d7b0d6afe6b /target-i386/op.c
parentd187d4b2187a485c6b5819cbb6f5dbef95e2e331 (diff)
downloadqemu-acf5feac80a3edb2d6cfaee40ae53ac90f789578.zip
hlt instruction fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@973 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/op.c')
-rw-r--r--target-i386/op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/op.c b/target-i386/op.c
index f7276ca67b..b9aef6aae2 100644
--- a/target-i386/op.c
+++ b/target-i386/op.c
@@ -433,6 +433,7 @@ void OPPROTO op_jmp_im(void)
void OPPROTO op_hlt(void)
{
+ env->hflags &= ~HF_INHIBIT_IRQ_MASK; /* needed if sti is just before */
env->exception_index = EXCP_HLT;
cpu_loop_exit();
}