From: Tim Newsome Date: Sun, 13 Aug 2017 19:50:39 +0000 (-0700) Subject: Fix MemTest* after sloppy rebase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46352a740f8d932411dcc21e420c77d9b804ae34;p=riscv-tests.git Fix MemTest* after sloppy rebase. --- 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)