diff options
author | Tim Newsome <tim@sifive.com> | 2017-08-13 12:50:39 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-08-28 12:16:39 -0700 |
commit | 46352a740f8d932411dcc21e420c77d9b804ae34 (patch) | |
tree | 3e40c5477b40391d6e2daf48ec85fe2fdb6045a7 | |
parent | 732d871e2af7b405f3f4a24ec1625c2fc8cfd1e1 (diff) | |
download | riscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.zip riscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.tar.gz riscv-tests-46352a740f8d932411dcc21e420c77d9b804ae34.tar.bz2 |
Fix MemTest* after sloppy rebase.
-rwxr-xr-x | debug/gdbserver.py | 4 |
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) |