mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
cpu: ensure we don't call start_exclusive from cpu_exec
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20241025175857.2554252-3-pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7ba055b49b
commit
779f30a01a
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ void start_exclusive(void)
|
|||
CPUState *other_cpu;
|
||||
int running_cpus;
|
||||
|
||||
/* Ensure we are not running, or start_exclusive will be blocked. */
|
||||
g_assert(!current_cpu->running);
|
||||
|
||||
if (current_cpu->exclusive_context_count) {
|
||||
current_cpu->exclusive_context_count++;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue