summaryrefslogtreecommitdiff
path: root/sim/gdbstub.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-10 19:18:21 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:27:19 -0600
commit6fee344b754464b1fd17f7c0429e6597e51dc74d (patch)
treea31913d054bbf83772fa29e256be750092256d8f /sim/gdbstub.py
parent6b163a88179ac3073d22622be4991f332529c8bd (diff)
Implement hardware virtual memory
Diffstat (limited to '')
-rw-r--r--sim/gdbstub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/gdbstub.py b/sim/gdbstub.py
index 914f717..74d046c 100644
--- a/sim/gdbstub.py
+++ b/sim/gdbstub.py
@@ -86,7 +86,7 @@ def yield_to_gdb():
out = hexout(read_reg(gdb_reg(r)) for r in range(16))
elif data[0] == b'm'[0]:
addr, length = (int(x, 16) for x in data[1:].split(b','))
- out = hexout(read_mem(addr, length))
+ out = hexout(read_mem(addr, length, may_fail = True))
elif data[0] == b'M'[0]:
addrlen, data = data[1:].split(b':')
addr, length = (int(x, 16) for x in addrlen.split(b','))