From fd294ae0fde0840272b54a31024551233f576090 Mon Sep 17 00:00:00 2001 From: Tommy Murphy Date: Fri, 30 Jun 2023 10:29:37 +0100 Subject: [PATCH] Fix for https://github.com/riscv-software-src/riscv-tests/issues/482 --- debug/targets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/targets.py b/debug/targets.py index 0ba12db01..19527497a 100644 --- a/debug/targets.py +++ b/debug/targets.py @@ -196,7 +196,7 @@ def do_compile(self, hart, *sources): "-o", binary_name] if hart.extensionSupported('e'): - args.append("-march=rv32e") + args.append("-march=rv32e_zicsr") args.append("-mabi=ilp32e") args.append("-DRV32E") else: @@ -206,7 +206,7 @@ def do_compile(self, hart, *sources): march += letter if hart.extensionSupported("v") and self.compiler_supports_v: march += "v" - args.append(f"-march={march}") + args.append(f"-march={march}_zicsr") if hart.xlen == 32: args.append("-mabi=ilp32") else: