diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-19 07:56:13 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 12:02:41 +0200 |
| commit | d30245d3f54187d5ef4fbc9013386b98b22da2b5 (patch) | |
| tree | 61fbf07e697d94d8b2291a117a20c046188d57a5 /system/cpus.c | |
| parent | c77283dd5d79149f4e7e9edd00f65416c648ee59 (diff) | |
| download | focaccia-qemu-d30245d3f54187d5ef4fbc9013386b98b22da2b5.tar.gz focaccia-qemu-d30245d3f54187d5ef4fbc9013386b98b22da2b5.zip | |
system/cpus: Assert interrupt handling is done with BQL locked
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-5-philmd@linaro.org>
Diffstat (limited to 'system/cpus.c')
| -rw-r--r-- | system/cpus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/cpus.c b/system/cpus.c index d16b0dff98..a43e0e4e79 100644 --- a/system/cpus.c +++ b/system/cpus.c @@ -265,6 +265,8 @@ static void generic_handle_interrupt(CPUState *cpu, int mask) void cpu_interrupt(CPUState *cpu, int mask) { + g_assert(bql_locked()); + if (cpus_accel->handle_interrupt) { cpus_accel->handle_interrupt(cpu, mask); } else { |