mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
monitor/mwait support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2044 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4f2092904d
commit
3d7374c5da
4 changed files with 97 additions and 14 deletions
|
@ -614,10 +614,17 @@ void OPPROTO op_movq_eip_im64(void)
|
|||
|
||||
void OPPROTO op_hlt(void)
|
||||
{
|
||||
env->hflags &= ~HF_INHIBIT_IRQ_MASK; /* needed if sti is just before */
|
||||
env->hflags |= HF_HALTED_MASK;
|
||||
env->exception_index = EXCP_HLT;
|
||||
cpu_loop_exit();
|
||||
helper_hlt();
|
||||
}
|
||||
|
||||
void OPPROTO op_monitor(void)
|
||||
{
|
||||
helper_monitor();
|
||||
}
|
||||
|
||||
void OPPROTO op_mwait(void)
|
||||
{
|
||||
helper_mwait();
|
||||
}
|
||||
|
||||
void OPPROTO op_debug(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue