From 40831d5061d2e45f0dfa64803ec82fa3117f5dc7 Mon Sep 17 00:00:00 2001 From: KirisameIgna <47731209+Sssssaltyfish@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:54:28 +0800 Subject: [PATCH] Reverted memory config on riscv --- platforms/riscv64-qemu-virt.toml | 8 +++++++- scripts/make/qemu.mk | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/platforms/riscv64-qemu-virt.toml b/platforms/riscv64-qemu-virt.toml index 92ae682a0..0f23e7ce4 100644 --- a/platforms/riscv64-qemu-virt.toml +++ b/platforms/riscv64-qemu-virt.toml @@ -8,8 +8,14 @@ family = "riscv64-qemu-virt" # Base address of the whole physical memory. phys-memory-base = "0x8000_0000" # Size of the whole physical memory. +# Size of the whole physical memory. # phys-memory-size = "0x800_0000" # 128M -phys-memory-size = "0x4000_0000" # 1G +# phys-memory-size = "0x1000_0000" # 1G +phys-memory-size = "0x8000_0000" # 2G +# phys-memory-size = "0xc000_0000" # 3G +# phys-memory-size = "0x1_0000_0000" # 4G +# phys-memory-size = "0x1_8000_0000" # 6G +# phys-memory-size = "0x2_0000_0000" # 8G # Base physical address of the kernel image. kernel-base-paddr = "0x8020_0000" # Base virtual address of the kernel image. diff --git a/scripts/make/qemu.mk b/scripts/make/qemu.mk index 86fa3edfd..d4413d2d2 100644 --- a/scripts/make/qemu.mk +++ b/scripts/make/qemu.mk @@ -29,7 +29,7 @@ qemu_args-aarch64 := \ -machine virt \ -kernel $(OUT_BIN) -qemu_args-y := -m 1G -smp $(SMP) $(qemu_args-$(ARCH)) \ +qemu_args-y := -m 2G -smp $(SMP) $(qemu_args-$(ARCH)) \ -append ";$(ARGS);$(ENVS)" qemu_args-$(BLK) += \