accel: Rename HAX 'struct hax_vcpu_state' -> AccelCPUState
commitf861b3f39063619b2d169cbacf455a00c22a1584
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 29 Mar 2023 17:01:49 +0000 (29 19:01 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 28 Jun 2023 11:55:35 +0000 (28 13:55 +0200)
tree6be7ec639e934010d01b2e131285ac6c92dd140a
parent6ecd2cd0dcfa733bdad7e97ee913ff44fc7681aa
accel: Rename HAX 'struct hax_vcpu_state' -> AccelCPUState

We want all accelerators to share the same opaque pointer in
CPUState. Start with the HAX context, renaming its forward
declarated structure 'hax_vcpu_state' as 'AccelCPUState'.
Document the CPUState field. Directly use the typedef.

Remove the amusing but now unnecessary casts in NVMM / WHPX.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230624174121.11508-8-philmd@linaro.org>
include/hw/core/cpu.h
include/qemu/typedefs.h
target/i386/hax/hax-all.c
target/i386/hax/hax-i386.h
target/i386/hax/hax-posix.c
target/i386/hax/hax-windows.c
target/i386/nvmm/nvmm-all.c
target/i386/whpx/whpx-all.c