]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/dummy: Extract 'dummy-cpus.h' header from 'system/cpus.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 30 Jun 2025 14:20:10 +0000 (16:20 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 4 Jul 2025 10:08:44 +0000 (12:08 +0200)
'dummy' helpers are specific to accelerator implementations,
no need to expose them via "system/cpus.h".

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>
Message-Id: <20250703173248.44995-27-philmd@linaro.org>

MAINTAINERS
accel/dummy-cpus.c
accel/dummy-cpus.h [new file with mode: 0644]
accel/qtest/qtest.c
accel/xen/xen-all.c
include/system/cpus.h

index 0fd8b2a4e61e58482f261955afa64155bc275130..fca98e12195736ae8f668764ebb0e2c58f623071 100644 (file)
@@ -503,6 +503,7 @@ F: include/system/accel-*.h
 F: include/system/cpus.h
 F: include/accel/accel-cpu*.h
 F: accel/accel-*.?
+F: accel/dummy-cpus.?
 F: accel/Makefile.objs
 F: accel/stubs/Makefile.objs
 F: cpu-common.c
index 867276144fa4c219a0e0b0cc1cb881809d81fa3b..03cfc0fa01e65ef4dc7e8bcbe066113a07446276 100644 (file)
@@ -17,6 +17,7 @@
 #include "qemu/guest-random.h"
 #include "qemu/main-loop.h"
 #include "hw/core/cpu.h"
+#include "accel/dummy-cpus.h"
 
 static void *dummy_cpu_thread_fn(void *arg)
 {
diff --git a/accel/dummy-cpus.h b/accel/dummy-cpus.h
new file mode 100644 (file)
index 0000000..d18dd0f
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Dummy cpu thread code
+ *
+ * Copyright IBM, Corp. 2011
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef ACCEL_DUMMY_CPUS_H
+#define ACCEL_DUMMY_CPUS_H
+
+void dummy_start_vcpu_thread(CPUState *cpu);
+
+#endif
index 92bed9264ce6d10d2e90272a73b7b80c0434106c..612cede160bf06b79fbf4ce4475eb13a5032b2fe 100644 (file)
@@ -24,6 +24,7 @@
 #include "qemu/guest-random.h"
 #include "qemu/main-loop.h"
 #include "hw/core/cpu.h"
+#include "accel/dummy-cpus.h"
 
 static int64_t qtest_clock_counter;
 
index de52a8f882a701466e43d3ababd5d30a53c8466d..c150dd43cab02aadbb4f7c7304b160ada11e01f4 100644 (file)
@@ -18,6 +18,7 @@
 #include "hw/xen/xen_igd.h"
 #include "chardev/char.h"
 #include "qemu/accel.h"
+#include "accel/dummy-cpus.h"
 #include "system/accel-ops.h"
 #include "system/cpus.h"
 #include "system/xen.h"
index 3226c765d01041a463b96884b339849c44e4704a..69be6a77a75ac763a4cdacd5eb8bcec4098efe5c 100644 (file)
@@ -7,11 +7,6 @@ void cpus_register_accel(const AccelOpsClass *i);
 /* return registers ops */
 const AccelOpsClass *cpus_get_accel(void);
 
-/* accel/dummy-cpus.c */
-
-/* Create a dummy vcpu for AccelOpsClass->create_vcpu_thread */
-void dummy_start_vcpu_thread(CPUState *);
-
 /* interface available for cpus accelerator threads */
 
 /* For temporary buffers for forming a name */