Skip to content

Commit 842c2df

Browse files
committed
Enable zicsr flag for GCC
1 parent 01e74ef commit 842c2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
TOOLCHAIN_PREFIX?=riscv64-unknown-elf-
22

33
%.elf: %.S link.ld
4-
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
4+
$(TOOLCHAIN_PREFIX)gcc -nostartfiles -nostdlib -march=rv32i_zicsr -mabi=ilp32 -Tlink.ld -o$@ $<
55
%.bin: %.elf
66
$(TOOLCHAIN_PREFIX)objcopy -O binary $< $@
77
%.hex: %.bin

0 commit comments

Comments
 (0)