arch/arm64/qemu/qemu_boot: fix wrong memory size

The default size in QEMU system is 128MB, and the size specified in chip.h is also 128MB. However, the region size for MMU was 512MB, so fixed it.

Signed-off-by: Hidenori Matsubayashi <hidenori.matsubayashi@gmail.com>
This commit is contained in:
Hidenori Matsubayashi 2022-10-09 14:15:41 +09:00 committed by Xiang Xiao
parent cb73e9a67d
commit 0b03a2316f
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@
static const struct arm_mmu_region mmu_regions[] = static const struct arm_mmu_region mmu_regions[] =
{ {
MMU_REGION_FLAT_ENTRY("DEVICE_REGION", MMU_REGION_FLAT_ENTRY("DEVICE_REGION",
CONFIG_DEVICEIO_BASEADDR, MB(512), CONFIG_DEVICEIO_BASEADDR, CONFIG_DEVICEIO_SIZE,
MT_DEVICE_NGNRNE | MT_RW | MT_SECURE), MT_DEVICE_NGNRNE | MT_RW | MT_SECURE),
MMU_REGION_FLAT_ENTRY("DRAM0_S0", MMU_REGION_FLAT_ENTRY("DRAM0_S0",
CONFIG_RAMBANK1_ADDR, MB(512), CONFIG_RAMBANK1_ADDR, CONFIG_RAMBANK1_SIZE,
MT_NORMAL | MT_RW | MT_SECURE), MT_NORMAL | MT_RW | MT_SECURE),
}; };