mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
cpu: Introduce SysemuCPUOps structure
Introduce a structure to hold handler specific to sysemu. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210517105140.1062037-15-f4bug@amsat.org> [rth: Squash "restrict hw/core/sysemu-cpu-ops.h" patch] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c2cf139d9c
commit
8b80bd28a5
22 changed files with 174 additions and 0 deletions
|
@ -80,6 +80,9 @@ struct TCGCPUOps;
|
|||
/* see accel-cpu.h */
|
||||
struct AccelCPUClass;
|
||||
|
||||
/* see sysemu-cpu-ops.h */
|
||||
struct SysemuCPUOps;
|
||||
|
||||
/**
|
||||
* CPUClass:
|
||||
* @class_by_name: Callback to map -cpu command line model name to an
|
||||
|
@ -191,6 +194,9 @@ struct CPUClass {
|
|||
bool gdb_stop_before_watchpoint;
|
||||
struct AccelCPUClass *accel_cpu;
|
||||
|
||||
/* when system emulation is not available, this pointer is NULL */
|
||||
const struct SysemuCPUOps *sysemu_ops;
|
||||
|
||||
/* when TCG is not available, this pointer is NULL */
|
||||
struct TCGCPUOps *tcg_ops;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue