[PATCH 0/2] hw/riscv: Make virt AIA setup reusable

Joel Stanley posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260109133125.397364-1-joel@jms.id.au
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Sunil V L <sunilvl@ventanamicro.com>
There is a newer version of this series
hw/riscv/aia.h             | 59 +++++++++++++++++++++++++
include/hw/riscv/virt.h    | 30 +------------
hw/riscv/aia.c             | 89 ++++++++++++++++++++++++++++++++++++++
hw/riscv/virt-acpi-build.c | 24 ++++++----
hw/riscv/virt.c            | 87 +++++--------------------------------
hw/riscv/meson.build       |  2 +-
6 files changed, 176 insertions(+), 115 deletions(-)
create mode 100644 hw/riscv/aia.h
create mode 100644 hw/riscv/aia.c
[PATCH 0/2] hw/riscv: Make virt AIA setup reusable
Posted by Joel Stanley 1 month ago
Sharing the AIA setup code looked like a good idea when I was
implementing a machine with AIA. It will be used by Atlantis initially.

Atlantis will use 128 IRQ sources so the second patch makes that
configurable as part of the setup. I initially changed it globally and
that broke the virt acpi tests as the number is encoded in acpi
blob.

Joel Stanley (2):
  hw/riscv/virt: Move AIA initialisation to helper file
  hw/riscv/aia: Provide number of irq sources

 hw/riscv/aia.h             | 59 +++++++++++++++++++++++++
 include/hw/riscv/virt.h    | 30 +------------
 hw/riscv/aia.c             | 89 ++++++++++++++++++++++++++++++++++++++
 hw/riscv/virt-acpi-build.c | 24 ++++++----
 hw/riscv/virt.c            | 87 +++++--------------------------------
 hw/riscv/meson.build       |  2 +-
 6 files changed, 176 insertions(+), 115 deletions(-)
 create mode 100644 hw/riscv/aia.h
 create mode 100644 hw/riscv/aia.c

-- 
2.47.3