aboutsummaryrefslogtreecommitdiff
path: root/debug/gdbserver.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-07-15 10:31:23 -0700
committerGitHub <noreply@github.com>2019-07-15 10:31:23 -0700
commit419dcecc7a9eb0b8efc2e8c82d37364a724e2227 (patch)
tree04854a0e0f6381cd4dbdb20e63a297265be77e3f /debug/gdbserver.py
parent92862bcb27a53f246126c95203b44153d324bbd7 (diff)
downloadriscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.zip
riscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.tar.gz
riscv-tests-419dcecc7a9eb0b8efc2e8c82d37364a724e2227.tar.bz2
Make tests work with RV32E targets. (#196)
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-xdebug/gdbserver.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index 8c58b6b..3e739f3 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -1081,7 +1081,10 @@ class RegsTest(GdbSingleHartTest):
class WriteGprs(RegsTest):
def test(self):
- regs = [("x%d" % n) for n in range(2, 32)]
+ if self.hart.extensionSupported('E'):
+ regs = [("x%d" % n) for n in range(2, 16)]
+ else:
+ regs = [("x%d" % n) for n in range(2, 32)]
self.gdb.p("$pc=write_regs")
for i, r in enumerate(regs):