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 | |
parent | c77283dd5d79149f4e7e9edd00f65416c648ee59 (diff) | |
download | qemu-d30245d3f54187d5ef4fbc9013386b98b22da2b5.zip qemu-d30245d3f54187d5ef4fbc9013386b98b22da2b5.tar.gz qemu-d30245d3f54187d5ef4fbc9013386b98b22da2b5.tar.bz2 |
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>
-rw-r--r-- | accel/tcg/tcg-accel-ops.c | 2 | ||||
-rw-r--r-- | system/cpus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index b24d6a7..6116644 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -93,8 +93,6 @@ static void tcg_cpu_reset_hold(CPUState *cpu) /* mask must never be zero, except for A20 change call */ void tcg_handle_interrupt(CPUState *cpu, int mask) { - g_assert(bql_locked()); - cpu->interrupt_request |= mask; /* diff --git a/system/cpus.c b/system/cpus.c index d16b0df..a43e0e4 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 { |