summaryrefslogtreecommitdiff
path: root/accel/qtest/qtest.c
diff options
context:
space:
mode:
authorJason Andryuk <jandryuk@gmail.com>2020-10-13 10:05:10 -0400
committerThomas Huth <thuth@redhat.com>2020-10-24 07:23:19 +0200
commit9ce84a0d17d015f059a6750fbbf4b057806751df (patch)
tree22dc336b897d1c3844e46a34d3d6a44a0338e9fa /accel/qtest/qtest.c
parenta6b0882ca75b62b2c0840578f790ab65844b749e (diff)
accel: move qtest CpusAccel functions to a common location
Move and rename accel/qtest/qtest-cpus.c files to accel/dummy-cpus.c so it can be re-used by Xen. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Message-Id: <20201013140511.5681-3-jandryuk@gmail.com> Reviewed-by: Claudio Fontana <cfontana@suse.de> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'accel/qtest/qtest.c')
-rw-r--r--accel/qtest/qtest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel/qtest/qtest.c b/accel/qtest/qtest.c
index 537e8b449c..b282cea5cf 100644
--- a/accel/qtest/qtest.c
+++ b/accel/qtest/qtest.c
@@ -25,7 +25,10 @@
#include "qemu/main-loop.h"
#include "hw/core/cpu.h"
-#include "qtest-cpus.h"
+const CpusAccel qtest_cpus = {
+ .create_vcpu_thread = dummy_start_vcpu_thread,
+ .get_virtual_clock = qtest_get_virtual_clock,
+};
static int qtest_init_accel(MachineState *ms)
{