diff options
| author | Joel Stanley <joel@jms.id.au> | 2026-09-03 15:21:26 +0930 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2026-09-04 10:03:25 +1000 |
| commit | 87b8687f6cc904510e57c2289afa0eb607871b2b (patch) | |
| tree | ff252b0bd2a0f854528d6bc6e453dad59d354d4c /include | |
| parent | 137d95c54a16b5bfab522c2bab47a518ba2aacd0 (diff) | |
| download | qemu-87b8687f6cc904510e57c2289afa0eb607871b2b.tar.gz qemu-87b8687f6cc904510e57c2289afa0eb607871b2b.zip | |
hw/riscv/atlantis: Decouple RAM size from MachineState
Keep a reference to the machine's RAM MemoryRegion in TTAtlantisState,
and get the MemoryRegion's size where the configured RAM size is
required.
This allows reading the RAM size without needing a pointer to
MachineState, decoupling the memory layout setup from the machine.
Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Message-ID: <20260903055131.257903-13-joel@jms.id.au>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/riscv/tt_atlantis.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/tt_atlantis.h b/include/hw/riscv/tt_atlantis.h index a29c67c1cf..2ec283d0fd 100644 --- a/include/hw/riscv/tt_atlantis.h +++ b/include/hw/riscv/tt_atlantis.h @@ -30,6 +30,7 @@ struct TTAtlantisState { const MemMapEntry *memmap; MemoryRegion *memory; + MemoryRegion *dram; RISCVHartArrayState cpus; DeviceState *irqchip; DesignWareI2CState i2c[TT_ATL_NUM_I2C]; |
