]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target/i386: unify masking of interrupts
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Aug 2018 13:31:24 +0000 (15:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:09:12 +0000 (19:09 +0200)
commit92d5f1a4147c3722b5e9a8bcfb7dc261b7a8b855
treea82c08f864204798283f7621c2c7ffd9458275d2
parent27e18b8952f8b7a1e26350846f8a0d5a9b33bfb8
target/i386: unify masking of interrupts

Interrupt handling depends on various flags in env->hflags or env->hflags2,
and the exact detail were not exactly replicated between x86_cpu_has_work
and x86_cpu_exec_interrupt.  Create a new function that extracts the
highest-priority non-masked interrupt, and use it in both functions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/seg_helper.c