qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 16/16] accel: Rename HVF 'struct hvf_vcpu_state' -> AccelC


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v3 16/16] accel: Rename HVF 'struct hvf_vcpu_state' -> AccelCPUState
Date: Tue, 27 Jun 2023 14:43:26 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
Not even built on x86!

Per IRC chat:
Tested-by: Peter Maydell <peter.maydell@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(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]