minor cleanup

master
Anton Lydike 2 years ago
parent 1b26497e4c
commit dd77d1b387

@ -10,7 +10,7 @@
<excludeFolder url="file://$MODULE_DIR$/riscemu.egg-info" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="jdk" jdkName="Python 3.10 (riscemu)" jdkType="Python SDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -12,8 +12,7 @@ class IOModule(MemorySection, ABC):
return self.base <= addr < self.base + self.size and \
self.base <= addr + size <= self.base + self.size
def dump(self, start: T_RelativeAddress, end: Optional[T_RelativeAddress] = None, fmt: str = 'hex',
bytes_per_row: int = 16, rows: int = 10, group: int = 4):
def dump(self, *args, **kwargs):
print(self)
def __repr__(self):

@ -94,7 +94,6 @@ class MMU:
:return: The bytearray at addr
"""
if isinstance(addr, Int32):
breakpoint()
addr = addr.unsigned_value
sec = self.get_sec_containing(addr)
if sec is None:

Loading…
Cancel
Save