From 0b03a2316f92073cec993dfb431a1682ba478360 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Sun, 9 Oct 2022 14:15:41 +0900 Subject: [PATCH] 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 --- arch/arm64/src/qemu/qemu_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/src/qemu/qemu_boot.c b/arch/arm64/src/qemu/qemu_boot.c index 0b1eafaa89..798b6a320c 100644 --- a/arch/arm64/src/qemu/qemu_boot.c +++ b/arch/arm64/src/qemu/qemu_boot.c @@ -52,11 +52,11 @@ static const struct arm_mmu_region mmu_regions[] = { MMU_REGION_FLAT_ENTRY("DEVICE_REGION", - CONFIG_DEVICEIO_BASEADDR, MB(512), + CONFIG_DEVICEIO_BASEADDR, CONFIG_DEVICEIO_SIZE, MT_DEVICE_NGNRNE | MT_RW | MT_SECURE), MMU_REGION_FLAT_ENTRY("DRAM0_S0", - CONFIG_RAMBANK1_ADDR, MB(512), + CONFIG_RAMBANK1_ADDR, CONFIG_RAMBANK1_SIZE, MT_NORMAL | MT_RW | MT_SECURE), };