aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-08-13 12:50:39 -0700
committerTim Newsome <tim@sifive.com>2017-08-28 12:16:39 -0700
commit46352a740f8d932411dcc21e420c77d9b804ae34 (patch)
tree3e40c5477b40391d6e2daf48ec85fe2fdb6045a7
parent732d871e2af7b405f3f4a24ec1625c2fc8cfd1e1 (diff)
downloadriscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.zip
riscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.tar.gz
riscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.tar.bz2
Fix MemTest* after sloppy rebase.
-rwxr-xr-xdebug/gdbserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index d5125a7..3fa67df 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -124,8 +124,8 @@ class SimpleMemoryTest(GdbTest):
assertEqual(self.gdb.p("sizeof(%s)" % data_type), size)
a = 0x86753095555aaaa & ((1<<(size*8))-1)
b = 0xdeadbeef12345678 & ((1<<(size*8))-1)
- addrA = self.target.ram
- addrB = self.target.ram + self.target.ram_size - size
+ addrA = self.hart.ram
+ addrB = self.hart.ram + self.hart.ram_size - size
self.gdb.p("*((%s*)0x%x) = 0x%x" % (data_type, addrA, a))
self.gdb.p("*((%s*)0x%x) = 0x%x" % (data_type, addrB, b))
assertEqual(self.gdb.p("*((%s*)0x%x)" % (data_type, addrA)), a)