Skip to content

Commit

Permalink
Reverted memory config on riscv
Browse files Browse the repository at this point in the history
  • Loading branch information
Sssssaltyfish committed Apr 1, 2024
1 parent 8d28091 commit 01feb0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion platforms/riscv64-qemu-virt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion scripts/make/qemu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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) += \
Expand Down

0 comments on commit 01feb0a

Please sign in to comment.