On 24/6/23 19:41, Philippe Mathieu-Daudé wrote:
We want all accelerators to share the same opaque pointer in
CPUState.
Rename the 'hvf_vcpu_state' structure as 'AccelCPUState'.
Use the generic 'accel' field of CPUState instead of 'hvf'.
Replace g_malloc0() by g_new0() for readability.
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
---
Not even built on x86!
Per IRC chat:
Tested-by: Peter Maydell <peter.mayd...@linaro.org>
---
include/hw/core/cpu.h | 4 -
include/sysemu/hvf_int.h | 2 +-
target/i386/hvf/vmx.h | 22 ++--
accel/hvf/hvf-accel-ops.c | 18 ++--
target/arm/hvf/hvf.c | 108 +++++++++----------
target/i386/hvf/hvf.c | 104 +++++++++---------
target/i386/hvf/x86.c | 28 ++---
target/i386/hvf/x86_descr.c | 26 ++---
target/i386/hvf/x86_emu.c | 62 +++++------
target/i386/hvf/x86_mmu.c | 4 +-
target/i386/hvf/x86_task.c | 10 +-
target/i386/hvf/x86hvf.c | 208 ++++++++++++++++++------------------
12 files changed, 296 insertions(+), 300 deletions(-)