mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
hlt instruction fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@973 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d187d4b218
commit
acf5feac80
@ -433,6 +433,7 @@ void OPPROTO op_jmp_im(void)
|
|||||||
|
|
||||||
void OPPROTO op_hlt(void)
|
void OPPROTO op_hlt(void)
|
||||||
{
|
{
|
||||||
|
env->hflags &= ~HF_INHIBIT_IRQ_MASK; /* needed if sti is just before */
|
||||||
env->exception_index = EXCP_HLT;
|
env->exception_index = EXCP_HLT;
|
||||||
cpu_loop_exit();
|
cpu_loop_exit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user