more debugging info for PLF format traps
This commit is contained in:
parent
797ccc3273
commit
b8ca7b4c13
1 changed files with 3 additions and 1 deletions
4
mmu.py
4
mmu.py
|
@ -532,7 +532,9 @@ class MemoryMgmt:
|
|||
def _raisetrap(self, trapflag, vaddr, xkey):
|
||||
"""Raise an MMU trap. Commits regmods and updates reason in MMR0."""
|
||||
if trapflag == self.MMR0_BITS.ABORT_PLENGTH:
|
||||
self.cpu.logger.debug(f"PLF trap @ {oct(vaddr)}, {xkey=}")
|
||||
self.cpu.logger.debug(
|
||||
f"PLF trap @ {oct(vaddr)}, {xkey=} "
|
||||
f"{self.MMR0=} {self.cpu.machinestate()}")
|
||||
self._MMR1commit()
|
||||
self.MMR0 |= (trapflag |
|
||||
xkey.segno << 1 | # bits <3:1>
|
||||
|
|
Loading…
Add table
Reference in a new issue