diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-21 15:31:24 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-02 19:09:12 +0200 |
commit | 92d5f1a4147c3722b5e9a8bcfb7dc261b7a8b855 (patch) | |
tree | a82c08f864204798283f7621c2c7ffd9458275d2 /target/i386/cpu.h | |
parent | 27e18b8952f8b7a1e26350846f8a0d5a9b33bfb8 (diff) |
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>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r-- | target/i386/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index b572a8e4aa..227a5d9b61 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1485,6 +1485,7 @@ extern struct VMStateDescription vmstate_x86_cpu; */ void x86_cpu_do_interrupt(CPUState *cpu); bool x86_cpu_exec_interrupt(CPUState *cpu, int int_req); +int x86_cpu_pending_interrupt(CPUState *cs, int interrupt_request); int x86_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cpu, int cpuid, void *opaque); |