From 842c2df0ca453db66b2ce6d9479cdfba8a471b18 Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Tue, 28 Jan 2025 23:13:36 +0100 Subject: [PATCH] Enable zicsr flag for GCC --- sw/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/Makefile b/sw/Makefile index c97dba5..f82ddc6 100644 --- a/sw/Makefile +++ b/sw/Makefile @@ -1,7 +1,7 @@ TOOLCHAIN_PREFIX?=riscv64-unknown-elf- %.elf: %.S link.ld - $(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $< + $(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i_zicsr -mabi=ilp32 -Tlink.ld -o$@ $< %.bin: %.elf $(TOOLCHAIN_PREFIX)objcopy -O binary $< $@ %.hex: %.bin