From d4416744777740f74a19294d332697639714d8d4 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Mon, 30 Sep 2019 20:15:19 -0400 Subject: [PATCH] Make QEMU memory size match PHYSTOP --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a398c5a..ba7a6fb 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ CPUS := 3 endif QEMUEXTRA = -drive file=fs1.img,if=none,format=raw,id=x1 -device virtio-blk-device,drive=x1,bus=virtio-mmio-bus.1 -QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 3G -smp $(CPUS) -nographic +QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 128M -smp $(CPUS) -nographic QEMUOPTS += -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 qemu: $K/kernel fs.img