aboutsummaryrefslogtreecommitdiff
path: root/target-i386/op.c
diff options
context:
space:
mode:
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();
}