From 46352a740f8d932411dcc21e420c77d9b804ae34 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Sun, 13 Aug 2017 12:50:39 -0700 Subject: [PATCH] Fix MemTest* after sloppy rebase. --- debug/gdbserver.py | 4 ++-- 1 file 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) -- 2.30.2