From: Tobias Platen Date: Tue, 9 Mar 2021 16:34:17 +0000 (+0100) Subject: _walk_tree: access sprs X-Git-Tag: convert-csv-opcode-to-binary~73 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5686075a627269b74816fb617710202f54dc3126;p=soc.git _walk_tree: access sprs --- diff --git a/src/soc/decoder/isa/radixmmu.py b/src/soc/decoder/isa/radixmmu.py index b8114008..93230d6a 100644 --- a/src/soc/decoder/isa/radixmmu.py +++ b/src/soc/decoder/isa/radixmmu.py @@ -282,6 +282,15 @@ class RADIX: // Authority // """ + # get sprs + print("_walk_tree") + pidr = self.caller.spr[DEC_SPR.PIDR.value] + prtbl = self.caller.spr[DEC_SPR.PRTBL.value] + print(pidr) + print(prtbl) + + # TODO read root entry from process table first + # walk tree starts on prtbl while True: ret = self._next_level()