mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 13:51:11 +00:00
target-i386: Allow interrupt injection after STGI
We need to terminate the translation block after STGI so that pending interrupts can be injected. This fixes pending NMI injection for Jailhouse which uses "stgi; clgi" to open a brief injection window. Backports commit df2518aa587a0157bbfbc635fe47295629d9914a from qemu
This commit is contained in:
parent
7c01627388
commit
fab6f4cd3a
|
@ -8074,8 +8074,9 @@ case 0x101:
|
|||
break;
|
||||
}
|
||||
gen_update_cc_op(s);
|
||||
gen_jmp_im(s, pc_start - s->cs_base);
|
||||
gen_helper_stgi(tcg_ctx, cpu_env);
|
||||
gen_jmp_im(s, s->pc - s->cs_base);
|
||||
gen_eob(s);
|
||||
break;
|
||||
|
||||
case 0xdd: /* CLGI */
|
||||
|
|
Loading…
Reference in a new issue