call decode_ptre on address to obtain shift, mbits, and pgbase
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 9 Mar 2021 19:38:24 +0000 (19:38 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 9 Mar 2021 19:38:24 +0000 (19:38 +0000)
src/soc/decoder/isa/radixmmu.py

index f860e417e9f22597c44294c6ab35e698c65baa01..2fea72f81c3cf365710aa198110ed984d08faddc 100644 (file)
@@ -189,7 +189,9 @@ class RADIX:
     def ld(self, address, width=8, swap=True, check_in_mem=False):
         print("RADIX: ld from addr 0x%x width %d" % (address, width))
 
-        shift = SelectableInt(0, 32)
+        (shift, mbits, pgbase) = self._decode_prte(addr)
+        #shift = SelectableInt(0, 32)
+
         pte = self._walk_tree(address,shift)
         # use pte to caclculate phys address
         return self.mem.ld(address, width, swap, check_in_mem)