From: Tim Newsome Date: Thu, 14 Jul 2016 21:52:55 +0000 (-0700) Subject: Fix test_block for 64-bit targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20b8019ab691ab6c327f157626a1f67a65ac9094;p=riscv-tests.git Fix test_block for 64-bit targets. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index d2ee5f5..0310a5b 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -123,7 +123,7 @@ class SimpleMemoryTest(DeleteServer): self.gdb.command("restore write.ihex 0x%x" % target.ram) for offset in range(0, length, 19*4) + [length-4]: - value = self.gdb.p("*((long*)0x%x)" % (target.ram + offset)) + value = self.gdb.p("*((int*)0x%x)" % (target.ram + offset)) written = ord(data[offset]) | \ (ord(data[offset+1]) << 8) | \ (ord(data[offset+2]) << 16) | \