accel/dummy: Extract 'dummy-cpus.h' header from 'system/cpus.h'
'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> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-27-philmd@linaro.org>
This commit is contained in:
parent
a9c2afd74b
commit
20a0181600
6 changed files with 18 additions and 5 deletions
|
|
@ -503,6 +503,7 @@ F: include/system/accel-*.h
|
||||||
F: include/system/cpus.h
|
F: include/system/cpus.h
|
||||||
F: include/accel/accel-cpu*.h
|
F: include/accel/accel-cpu*.h
|
||||||
F: accel/accel-*.?
|
F: accel/accel-*.?
|
||||||
|
F: accel/dummy-cpus.?
|
||||||
F: accel/Makefile.objs
|
F: accel/Makefile.objs
|
||||||
F: accel/stubs/Makefile.objs
|
F: accel/stubs/Makefile.objs
|
||||||
F: cpu-common.c
|
F: cpu-common.c
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#include "qemu/guest-random.h"
|
#include "qemu/guest-random.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "hw/core/cpu.h"
|
#include "hw/core/cpu.h"
|
||||||
|
#include "accel/dummy-cpus.h"
|
||||||
|
|
||||||
static void *dummy_cpu_thread_fn(void *arg)
|
static void *dummy_cpu_thread_fn(void *arg)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
14
accel/dummy-cpus.h
Normal file
14
accel/dummy-cpus.h
Normal file
|
|
@ -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
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
#include "qemu/guest-random.h"
|
#include "qemu/guest-random.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "hw/core/cpu.h"
|
#include "hw/core/cpu.h"
|
||||||
|
#include "accel/dummy-cpus.h"
|
||||||
|
|
||||||
static int64_t qtest_clock_counter;
|
static int64_t qtest_clock_counter;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
#include "hw/xen/xen_igd.h"
|
#include "hw/xen/xen_igd.h"
|
||||||
#include "chardev/char.h"
|
#include "chardev/char.h"
|
||||||
#include "qemu/accel.h"
|
#include "qemu/accel.h"
|
||||||
|
#include "accel/dummy-cpus.h"
|
||||||
#include "system/accel-ops.h"
|
#include "system/accel-ops.h"
|
||||||
#include "system/cpus.h"
|
#include "system/cpus.h"
|
||||||
#include "system/xen.h"
|
#include "system/xen.h"
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,6 @@ void cpus_register_accel(const AccelOpsClass *i);
|
||||||
/* return registers ops */
|
/* return registers ops */
|
||||||
const AccelOpsClass *cpus_get_accel(void);
|
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 */
|
/* interface available for cpus accelerator threads */
|
||||||
|
|
||||||
/* For temporary buffers for forming a name */
|
/* For temporary buffers for forming a name */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue