commit f2d7f133a43bd5fe6ea51b7ae3e0f9e2d2c142e4
parent fb69c958be5d61576ff8a091fdd52a64c837669c
Author: Brian Swetland <swetland@frotz.net>
Date: Wed, 4 May 2022 17:07:34 -0700
build: update makefile for new qemu machine
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -12,7 +12,7 @@ XTOOLCHAIN ?= /usr/bin/riscv64-unknown-elf-
QEMU ?= /usr/bin/qemu-system-riscv32
QEMUBIOS := out/bios.elf
-QFLAGS := -machine virt -bios $(QEMUBIOS) -nographic
+QFLAGS := -machine micro -bios $(QEMUBIOS) -nographic
QFLAGS.GDB := $(QFLAGS) -gdb tcp::7777 -S
ifeq ($(wildcard $(XTOOLCHAIN)gcc),)
@@ -39,6 +39,7 @@ LDSCRIPT := hw/simple.ld
BUILD := out
CFLAGS := -g -Wall -Ilibc/inc -Ihw/inc
+CFLAGS += -O2
ALL :=