hlt instruction fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 25 Jun 2004 14:58:58 +0000 (14:58 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 25 Jun 2004 14:58:58 +0000 (14:58 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@973 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/op.c

index f7276ca67bb8908f254fdc2721b9afb6c1f54a4c..b9aef6aae2694ead836beaa121869b019311ea5c 100644 (file)
@@ -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();
 }