add cached pgtbl0/3
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 4 Mar 2021 17:47:21 +0000 (17:47 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 4 Mar 2021 17:47:21 +0000 (17:47 +0000)
src/soc/decoder/isa/caller.py

index 0664591c8e81b02c4d65b552d6e47d3cc75cd25e..99ea69752b315c2f7de4503a1e0ed53d8eeb1160 100644 (file)
@@ -82,6 +82,12 @@ class RADIX:
         self.mem = mem
         self.caller = caller
 
+        # cached page table stuff
+        self.pgtbl0 = 0
+        self.pt0_valid = False
+        self.pgtbl3 = 0
+        self.pt3_valid = False
+
     def ld(self, address, width=8, swap=True, check_in_mem=False):
         print("RADIX: ld from addr 0x{:x} width {:d}".format(address, width))