aboutsummaryrefslogtreecommitdiff
path: root/include/hw/riscv
diff options
context:
space:
mode:
authorSunil V L <sunilvl@ventanamicro.com>2023-03-02 14:42:07 +0530
committerPalmer Dabbelt <palmer@rivosinc.com>2023-03-06 11:35:03 -0800
commit71302ff3bc9fbcceeb3ad7e6bb724ea942b5bba1 (patch)
tree8f68c299b9c0a3677c0b7a5f9dd3f12d15a5371c /include/hw/riscv
parent168b8c29cedb9c1639fabbd96410ed8488af5cf9 (diff)
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>
Diffstat (limited to 'include/hw/riscv')
-rw-r--r--include/hw/riscv/virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h
index 62efebaa32..379501edcc 100644
--- a/include/hw/riscv/virt.h
+++ b/include/hw/riscv/virt.h
@@ -59,6 +59,7 @@ struct RISCVVirtState {
char *oem_id;
char *oem_table_id;
OnOffAuto acpi;
+ const MemMapEntry *memmap;
};
enum {