_walk_tree: access sprs
authorTobias Platen <tplaten@posteo.de>
Tue, 9 Mar 2021 16:34:17 +0000 (17:34 +0100)
committerTobias Platen <tplaten@posteo.de>
Tue, 9 Mar 2021 16:34:17 +0000 (17:34 +0100)
src/soc/decoder/isa/radixmmu.py

index b8114008cbdb33255e018ed4e57d735bee02c114..93230d6a3b0c88221f9848ccb3568202b1f4171b 100644 (file)
@@ -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()