projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efabfab
)
Fix test_block for 64-bit targets.
author
Tim Newsome
<tim@sifive.com>
Thu, 14 Jul 2016 21:52:55 +0000
(14:52 -0700)
committer
Tim Newsome
<tim@sifive.com>
Tue, 19 Jul 2016 18:24:25 +0000
(11:24 -0700)
debug/gdbserver.py
patch
|
blob
|
history
diff --git
a/debug/gdbserver.py
b/debug/gdbserver.py
index d2ee5f5dc28a4feb9317bf704f2271422b1f4ca9..0310a5befc7424ef6f981a4c022100dd23ca3d89 100755
(executable)
--- 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) | \