diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-12 14:45:19 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 12:08:44 +0200 |
commit | b9b8ce038497a18f4525e9b229f9090b1cec3b05 (patch) | |
tree | 147e3d4ac71973543edeb72612f7bd2f31dfb416 /include | |
parent | e8388158e62184cb567b7b97ab9e6738dec45348 (diff) | |
download | qemu-b9b8ce038497a18f4525e9b229f9090b1cec3b05.zip qemu-b9b8ce038497a18f4525e9b229f9090b1cec3b05.tar.gz qemu-b9b8ce038497a18f4525e9b229f9090b1cec3b05.tar.bz2 |
accel: Expose and register generic_handle_interrupt()
In order to dispatch over AccelOpsClass::handle_interrupt(),
we need it always defined, not calling a hidden handler under
the hood. Make AccelOpsClass::handle_interrupt() mandatory.
Expose generic_handle_interrupt() prototype and register it
for each accelerator.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20250703173248.44995-29-philmd@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/system/accel-ops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/system/accel-ops.h b/include/system/accel-ops.h index a4e706b..e775ecc 100644 --- a/include/system/accel-ops.h +++ b/include/system/accel-ops.h @@ -62,6 +62,7 @@ struct AccelOpsClass { void (*synchronize_pre_loadvm)(CPUState *cpu); void (*synchronize_pre_resume)(bool step_pending); + /* handle_interrupt is mandatory. */ void (*handle_interrupt)(CPUState *cpu, int mask); /** @@ -86,4 +87,6 @@ struct AccelOpsClass { void (*remove_all_breakpoints)(CPUState *cpu); }; +void generic_handle_interrupt(CPUState *cpu, int mask); + #endif /* ACCEL_OPS_H */ |