]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv/virt: Add memmap pointer to RiscVVirtState
authorSunil V L <sunilvl@ventanamicro.com>
Thu, 2 Mar 2023 09:12:07 +0000 (14:42 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 6 Mar 2023 19:35:03 +0000 (11:35 -0800)
commit71302ff3bc9fbcceeb3ad7e6bb724ea942b5bba1
tree8f68c299b9c0a3677c0b7a5f9dd3f12d15a5371c
parent168b8c29cedb9c1639fabbd96410ed8488af5cf9
hw/riscv/virt: Add memmap pointer to RiscVVirtState

memmap needs to be exported outside of virt.c so that
modules like acpi can use it. Hence, add a pointer field
in RiscVVirtState structure and initialize it with the
memorymap.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20230302091212.999767-4-sunilvl@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
hw/riscv/virt.c
include/hw/riscv/virt.h