Skip to content

hw/riscv/virt: Remove unnecessary use of &first_cpu

Philippe Mathieu-Daudé qemu-devel qemu-riscv 1 version Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2target/riscv: Have kvm_riscv_get_timebase_frequency() take RISCVCPU cpuhw/riscv/virt.c target/riscv/kvm/kvm-cpu.c target/riscv/kvm/kvm_riscv.h+6 -41 reply
2/2hw/riscv/virt: Remove unnecessary use of &first_cpuhw/riscv/virt.c+1 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] hw/riscv/virt: Remove unnecessary use of &first_cpu

Pass RISCVCPU to kvm_riscv_get_timebase_frequency(), then access the first vCPU via Virt::Array::Hart[] rather than the &first_cpu global, which is going to be removed as part of the heterogeneous emulation effort.

Philippe Mathieu-Daudé (2):
target/riscv: Have kvm_riscv_get_timebase_frequency() take RISCVCPU
cpu
hw/riscv/virt: Remove unnecessary use of &first_cpu

 target/riscv/kvm/kvm_riscv.h | 4 +++-
 hw/riscv/virt.c              | 2 +-
 target/riscv/kvm/kvm-cpu.c   | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.1