accel: Rename HVF 'struct hvf_vcpu_state' -> AccelCPUState
commit3b295bcb3289afec09508786032f4ba5d657a934
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 21 Jun 2023 11:15:27 +0000 (21 13:15 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 28 Jun 2023 12:14:22 +0000 (28 14:14 +0200)
tree37f11b0092601dd6303ab87a3b5c0fb2da713914
parenta7159244285058c049ad53a42b3dc7b24809faaa
accel: Rename HVF 'struct hvf_vcpu_state' -> AccelCPUState

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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20230624174121.11508-17-philmd@linaro.org>
12 files changed:
accel/hvf/hvf-accel-ops.c
include/hw/core/cpu.h
include/sysemu/hvf_int.h
target/arm/hvf/hvf.c
target/i386/hvf/hvf.c
target/i386/hvf/vmx.h
target/i386/hvf/x86.c
target/i386/hvf/x86_descr.c
target/i386/hvf/x86_emu.c
target/i386/hvf/x86_mmu.c
target/i386/hvf/x86_task.c
target/i386/hvf/x86hvf.c