From 9585db68c78b538e4d835372da3c5675fe0608da Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 13 Sep 2014 09:45:17 -0700 Subject: qom: Add cpu_exec_interrupt hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Continuing the removal of ifdefs from cpu_exec. Cc: Andreas Färber Signed-off-by: Richard Henderson Reviewed-by: Max Filippov Reviewed-by: Alex Bennée Message-id: 1410626734-3804-7-git-send-email-rth@twiddle.net Signed-off-by: Peter Maydell --- qom/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index 6a9d02e..0ec3337 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -206,6 +206,11 @@ static void cpu_common_noop(CPUState *cpu) { } +static bool cpu_common_exec_interrupt(CPUState *cpu, int int_req) +{ + return false; +} + void cpu_dump_state(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf, int flags) { @@ -347,6 +352,7 @@ static void cpu_class_init(ObjectClass *klass, void *data) k->debug_excp_handler = cpu_common_noop; k->cpu_exec_enter = cpu_common_noop; k->cpu_exec_exit = cpu_common_noop; + k->cpu_exec_interrupt = cpu_common_exec_interrupt; dc->realize = cpu_common_realizefn; /* * Reason: CPUs still need special care by board code: wiring up -- cgit v1.1