added additional logging to invalid mmu data access, needs a better exception
This commit is contained in:
parent
fa22d76f13
commit
1abdc79e5e
@ -167,6 +167,10 @@ class MMU:
|
||||
:param data: The bytearray to write (only first size bytes are written)
|
||||
"""
|
||||
sec = self.get_sec_containing(addr)
|
||||
if sec is None:
|
||||
print(FMT_MEM + '[MMU] Invalid write into non-initialized section at 0x{:08X}'.format(addr) + FMT_NONE)
|
||||
raise RuntimeError("No write pls")
|
||||
|
||||
return sec.write(addr - sec.base, size, data)
|
||||
|
||||
def dump(self, addr, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user