diff options
| author | Cédric Le Goater | 2016-12-27 15:59:27 +0100 |
|---|---|---|
| committer | Peter Maydell | 2016-12-27 15:59:27 +0100 |
| commit | 74af4eec29f828b8ddf51d9f071264866c868ccb (patch) | |
| tree | 02318df8c391f862f5f07a328d49330d7091d4fb /include | |
| parent | aspeed: add support for the romulus-bmc board (diff) | |
| download | qemu-74af4eec29f828b8ddf51d9f071264866c868ccb.tar.gz qemu-74af4eec29f828b8ddf51d9f071264866c868ccb.tar.xz qemu-74af4eec29f828b8ddf51d9f071264866c868ccb.zip | |
aspeed: add a memory region for SRAM
The size of the SRAM depends on the SoC model, so use a per-soc
definition when creating the region.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 1480434248-27138-9-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/arm/aspeed_soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h index 6f1b679c97..1ab5deaa08 100644 --- a/include/hw/arm/aspeed_soc.h +++ b/include/hw/arm/aspeed_soc.h @@ -29,6 +29,7 @@ typedef struct AspeedSoCState { /*< public >*/ ARMCPU cpu; MemoryRegion iomem; + MemoryRegion sram; AspeedVICState vic; AspeedTimerCtrlState timerctrl; AspeedI2CState i2c; @@ -46,6 +47,7 @@ typedef struct AspeedSoCInfo { const char *cpu_model; uint32_t silicon_rev; hwaddr sdram_base; + uint64_t sram_size; int spis_num; const hwaddr *spi_bases; const char *fmc_typename; |
