From 0adf7d3cc3f724e1e9ce5aaa008bd9daeb490f19 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Fri, 24 Oct 2014 12:19:12 +0100 Subject: 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 Signed-off-by: Ard Biesheuvel Signed-off-by: Peter Maydell Message-id: 1412865028-17725-3-git-send-email-peter.maydell@linaro.org --- target-arm/cpu64.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target-arm/cpu64.c') diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c index c30f47eca7..a95367af2b 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; -- cgit v1.2.1