aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebug/gdbserver.py4
-rw-r--r--debug/targets.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index 764d1d0..d0302fb 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -1913,8 +1913,8 @@ class FreeRtosTest(GdbTest):
bp = self.gdb.b("vTaskStartScheduler")
self.gdb.c()
self.gdb.command(f"delete {bp}")
- # 'Current Execution' is still there before the scheduler has been started.
- # Now there are 3 threads: Current Execution, Rx, Tx.
+ # 'Current Execution' is still there before the scheduler has been
+ # started. Now there are 3 threads: Current Execution, Rx, Tx.
threads = self.gdb.threads()
assertEqual(len(threads), 3)
diff --git a/debug/targets.py b/debug/targets.py
index 0ba12db..1952749 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -196,7 +196,7 @@ class Target:
"-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 @@ class Target:
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: