mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
target/i386: Moved int_ctl into CPUX86State structure
Moved int_ctl into the CPUX86State structure. It removes some unnecessary stores and loads, and prepares for tracking the vIRQ state even when it is masked due to vGIF. Signed-off-by: Lara Lazier <laramglazier@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
900eeca579
commit
e3126a5c92
6 changed files with 41 additions and 38 deletions
|
@ -5655,7 +5655,7 @@ static void x86_cpu_reset(DeviceState *dev)
|
|||
env->old_exception = -1;
|
||||
|
||||
/* init to reset state */
|
||||
|
||||
env->int_ctl = 0;
|
||||
env->hflags2 |= HF2_GIF_MASK;
|
||||
env->hflags &= ~HF_GUEST_MASK;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue