summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-02-13 12:14:31 -0600
committerAlejandro Soto <alejandro@34project.org>2024-02-20 11:11:18 -0600
commit827c40829903d5b870f47ab2f389792ed10211bd (patch)
tree2a696fcb41118e8115585a9e2d79ec60294a6584 /sim
parent9bf55b70a85e5c12e9cfd0b8c7e1eaf1c05a6c1c (diff)
rtl/core/control: don't shift branch history registers inside loops
Diffstat (limited to 'sim')
-rwxr-xr-xsim/sim.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/sim.py b/sim/sim.py
index 6ad3d23..494d5c3 100755
--- a/sim/sim.py
+++ b/sim/sim.py
@@ -152,12 +152,12 @@ def recv_mem_dump():
while_running()
out(f'{COLOR_BLUE}{line}{COLOR_RESET}')
-def read_mem(base, length, *, may_fail = False):
+def read_mem(base, length, *, may_fail=False, phys=False):
fragments = []
i = 0
if halted and length > 0:
- print('dump-mem', base >> 2, (length + base - (base & ~0b11) + 0b11) >> 2, file=sim_end, flush=True)
+ print('dump-phys' if phys else 'dump-mem', base >> 2, (length + base - (base & ~0b11) + 0b11) >> 2, file=sim_end, flush=True)
recv_mem_dump()
while length > 0: