summaryrefslogtreecommitdiffstats
path: root/target/alpha/cpu.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-11 18:54:16 +0200
committerRichard Henderson2021-09-14 21:00:21 +0200
commit9354e6947adcd0b74b9c7de875ab8635a4e7e947 (patch)
tree6e0ee66676742f73e605a563ce6dafbb422957ff /target/alpha/cpu.c
parentaccel/tcg: Rename user-mode do_interrupt hack as fake_user_interrupt (diff)
downloadqemu-9354e6947adcd0b74b9c7de875ab8635a4e7e947.tar.gz
qemu-9354e6947adcd0b74b9c7de875ab8635a4e7e947.tar.xz
qemu-9354e6947adcd0b74b9c7de875ab8635a4e7e947.zip
target/alpha: Restrict cpu_exec_interrupt() handler to sysemu
Restrict cpu_exec_interrupt() and its callees to sysemu. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210911165434.531552-7-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/alpha/cpu.c')
-rw-r--r--target/alpha/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c
index 4871ad0c0a..93e16a2ffb 100644
--- a/target/alpha/cpu.c
+++ b/target/alpha/cpu.c
@@ -218,10 +218,10 @@ static const struct SysemuCPUOps alpha_sysemu_ops = {
static const struct TCGCPUOps alpha_tcg_ops = {
.initialize = alpha_translate_init,
- .cpu_exec_interrupt = alpha_cpu_exec_interrupt,
.tlb_fill = alpha_cpu_tlb_fill,
#ifndef CONFIG_USER_ONLY
+ .cpu_exec_interrupt = alpha_cpu_exec_interrupt,
.do_interrupt = alpha_cpu_do_interrupt,
.do_transaction_failed = alpha_cpu_do_transaction_failed,
.do_unaligned_access = alpha_cpu_do_unaligned_access,