aboutsummaryrefslogtreecommitdiff
path: root/debug/gdbserver.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-10-17 09:47:39 -0700
committerGitHub <noreply@github.com>2023-10-17 09:47:39 -0700
commita176b65b40b9a2bcd5ce24334722036f82677eb5 (patch)
tree7fc2ba1a4271384fa5e3a2c9e79452a64c7961f8 /debug/gdbserver.py
parent7453fe9e17421cfd26c3976449e5d4bd8df0ef31 (diff)
parent4dfd2e7b4b6ef3f1dc134d299cc2ea4d2bbadab1 (diff)
downloadriscv-tests-a176b65b40b9a2bcd5ce24334722036f82677eb5.zip
riscv-tests-a176b65b40b9a2bcd5ce24334722036f82677eb5.tar.gz
riscv-tests-a176b65b40b9a2bcd5ce24334722036f82677eb5.tar.bz2
Merge pull request #514 from lz-bro/timer_configurable
Make CLINT address configurable
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-xdebug/gdbserver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index cb3ab43..dd11dab 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -912,7 +912,7 @@ class RepeatReadTest(DebugTest):
def test(self):
self.gdb.b("main:start")
self.gdb.c()
- mtime_addr = 0x02000000 + 0xbff8
+ mtime_addr = self.target.clint_addr + 0xbff8
count = 1024
output = self.gdb.command(
f"monitor riscv repeat_read {count} 0x{mtime_addr:x} 4")
@@ -1048,8 +1048,8 @@ class InterruptTest(GdbSingleHartTest):
def postMortem(self):
GdbSingleHartTest.postMortem(self)
- self.gdb.p("*((long long*) 0x200bff8)")
- self.gdb.p("*((long long*) 0x2004000)")
+ self.gdb.p(f"*((long long*) 0x{self.target.clint_addr + 0xbff8:x})")
+ self.gdb.p(f"*((long long*) 0x{self.target.clint_addr + 0x4000:x})")
self.gdb.p("interrupt_count")
self.gdb.p("local")