summary refs log tree commit diff stats
path: root/include/sysemu/hvf_int.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-06-21 13:15:27 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-06-28 14:14:22 +0200
commit3b295bcb3289afec09508786032f4ba5d657a934 (patch)
tree37f11b0092601dd6303ab87a3b5c0fb2da713914 /include/sysemu/hvf_int.h
parenta7159244285058c049ad53a42b3dc7b24809faaa (diff)
downloadfocaccia-qemu-3b295bcb3289afec09508786032f4ba5d657a934.tar.gz
focaccia-qemu-3b295bcb3289afec09508786032f4ba5d657a934.zip
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>
Diffstat (limited to 'include/sysemu/hvf_int.h')
-rw-r--r--include/sysemu/hvf_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h
index 6ab119e49f..718beddcdd 100644
--- a/include/sysemu/hvf_int.h
+++ b/include/sysemu/hvf_int.h
@@ -49,7 +49,7 @@ struct HVFState {
 };
 extern HVFState *hvf_state;
 
-struct hvf_vcpu_state {
+struct AccelCPUState {
     uint64_t fd;
     void *exit;
     bool vtimer_masked;