On 4/5/23 03:18, Philippe Mathieu-Daudé wrote:
We want all accelerators to share the same opaque pointer in
CPUState.

Rename the 'hvf_vcpu_state' structure as 'AccelvCPUState'.

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>
---
  include/hw/core/cpu.h     |  3 --
  include/sysemu/hvf_int.h  |  2 +-
  accel/hvf/hvf-accel-ops.c | 16 ++++-----
  target/arm/hvf/hvf.c      | 70 +++++++++++++++++++--------------------
  4 files changed, 44 insertions(+), 47 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to