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

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

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

Loading…
Cancel
Save