From 39e759ae9b6d152dd6e8199f15c5a1dc8c7f657e Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 17 Apr 2022 12:32:15 +0200 Subject: [PATCH] fixed bug where wrong parts of section would be printed in mmu.dump() --- riscemu/MMU.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscemu/MMU.py b/riscemu/MMU.py index d44db2c..7f1bee9 100644 --- a/riscemu/MMU.py +++ b/riscemu/MMU.py @@ -129,7 +129,7 @@ class MMU: if sec is None: print(FMT_MEM + "[MMU] No section containing addr 0x{:08X}".format(addr) + FMT_NONE) return - sec.dump(addr, *args, **kwargs) + sec.dump(addr - sec.base, *args, **kwargs) def label(self, symb: str): """