Skip to content

Commit 1f7a4b4

Browse files
authored
Merge pull request #484 from TommyMurphyTM1234/master
Fix for test program compilation failures due to lack of `zicsr` extension in `-march=rvXX...`
2 parents 10a93cb + fd294ae commit 1f7a4b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debug/targets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def do_compile(self, hart, *sources):
196196
"-o", binary_name]
197197

198198
if hart.extensionSupported('e'):
199-
args.append("-march=rv32e")
199+
args.append("-march=rv32e_zicsr")
200200
args.append("-mabi=ilp32e")
201201
args.append("-DRV32E")
202202
else:
@@ -206,7 +206,7 @@ def do_compile(self, hart, *sources):
206206
march += letter
207207
if hart.extensionSupported("v") and self.compiler_supports_v:
208208
march += "v"
209-
args.append(f"-march={march}")
209+
args.append(f"-march={march}_zicsr")
210210
if hart.xlen == 32:
211211
args.append("-mabi=ilp32")
212212
else:

0 commit comments

Comments
 (0)