diff options
author | Rob Herring <rob.herring@linaro.org> | 2014-10-24 12:19:12 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-10-24 12:19:12 +0100 |
commit | 0adf7d3cc3f724e1e9ce5aaa008bd9daeb490f19 (patch) | |
tree | e1dfd6788956dd69431bd00a0409f2f0012bc6b2 /target-arm/cpu64.c | |
parent | 543486db353b53f3601d0b5abf652ab330261107 (diff) | |
download | qemu-0adf7d3cc3f724e1e9ce5aaa008bd9daeb490f19.zip qemu-0adf7d3cc3f724e1e9ce5aaa008bd9daeb490f19.tar.gz qemu-0adf7d3cc3f724e1e9ce5aaa008bd9daeb490f19.tar.bz2 |
target-arm: do not set do_interrupt handlers for ARM and AArch64 user modes
User mode emulation should never get interrupts and thus should not
use the system emulation exception handler function. Remove the reference,
and '#ifndef USER_MODE_ONLY' the function itself as well, so that we can add
system mode only functionality to it.
Signed-off-by: Rob Herring <rob.herring@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1412865028-17725-3-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-arm/cpu64.c')
-rw-r--r-- | target-arm/cpu64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c index c30f47e..a95367a 100644 --- a/target-arm/cpu64.c +++ b/target-arm/cpu64.c @@ -196,7 +196,9 @@ static void aarch64_cpu_class_init(ObjectClass *oc, void *data) { CPUClass *cc = CPU_CLASS(oc); +#if !defined(CONFIG_USER_ONLY) cc->do_interrupt = aarch64_cpu_do_interrupt; +#endif cc->cpu_exec_interrupt = arm_cpu_exec_interrupt; cc->set_pc = aarch64_cpu_set_pc; cc->gdb_read_register = aarch64_cpu_gdb_read_register; |