aboutsummaryrefslogtreecommitdiff
path: root/target/nios2/helper.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-02-26 01:56:15 -1000
committerRichard Henderson <richard.henderson@linaro.org>2022-03-03 09:51:59 -1000
commitb72c9d5951f1dfa047f545408dd9e35597e6b9d3 (patch)
tree9e3e33056b2417870a4e8aef8a84c54c7c3613ab /target/nios2/helper.h
parent8d8d73b55144e0d8d3c15a83a8fd8f3de78c460d (diff)
downloadqemu-b72c9d5951f1dfa047f545408dd9e35597e6b9d3.zip
qemu-b72c9d5951f1dfa047f545408dd9e35597e6b9d3.tar.gz
qemu-b72c9d5951f1dfa047f545408dd9e35597e6b9d3.tar.bz2
target/nios2: Rewrite interrupt handling
Previously, we would avoid setting CPU_INTERRUPT_HARD when interrupts are disabled at a particular point in time, instead queuing the value into cpu->irq_pending. This is more complicated than required. Instead, set CPU_INTERRUPT_HARD any time there is a pending interrupt, and exclusively check for interrupts disabled in nios2_cpu_exec_interrupt. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2/helper.h')
-rw-r--r--target/nios2/helper.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/nios2/helper.h b/target/nios2/helper.h
index 21ef7f0..a44ecfd 100644
--- a/target/nios2/helper.h
+++ b/target/nios2/helper.h
@@ -24,5 +24,4 @@ DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32)
DEF_HELPER_2(mmu_write_tlbacc, void, env, i32)
DEF_HELPER_2(mmu_write_tlbmisc, void, env, i32)
DEF_HELPER_2(mmu_write_pteaddr, void, env, i32)
-DEF_HELPER_1(check_interrupts, void, env)
#endif