From 5686075a627269b74816fb617710202f54dc3126 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Tue, 9 Mar 2021 17:34:17 +0100 Subject: [PATCH] _walk_tree: access sprs --- src/soc/decoder/isa/radixmmu.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- 2.30.2