summary refs log tree commit diff stats
path: root/plugins/loader.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-09-06 06:46:03 +0200
committerRichard Henderson <richard.henderson@linaro.org>2025-09-24 10:29:43 -0700
commit7330741b3e4bc4b1b32e85b9c1372f44c896c4da (patch)
treec9cc0aa9206118f0d9484ea8541468c945f6cf46 /plugins/loader.c
parent84142184899322c2dca931e36abca7a35a2827cd (diff)
downloadfocaccia-qemu-7330741b3e4bc4b1b32e85b9c1372f44c896c4da.tar.gz
focaccia-qemu-7330741b3e4bc4b1b32e85b9c1372f44c896c4da.zip
plugins: Use tb_flush__exclusive_or_serial
In all cases, we are already within start_exclusive.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'plugins/loader.c')
-rw-r--r--plugins/loader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/loader.c b/plugins/loader.c
index 8f0d75c904..ba10ebac99 100644
--- a/plugins/loader.c
+++ b/plugins/loader.c
@@ -377,8 +377,7 @@ static void plugin_flush_destroy(CPUState *cpu, run_on_cpu_data arg)
 {
     struct qemu_plugin_reset_data *data = arg.host_ptr;
 
-    g_assert(cpu_in_exclusive_context(cpu));
-    tb_flush(cpu);
+    tb_flush__exclusive_or_serial();
     plugin_reset_destroy(data);
 }