_new_lookup: remove unused argument mbits
authorTobias Platen <tplaten@posteo.de>
Wed, 31 Mar 2021 19:45:57 +0000 (21:45 +0200)
committerTobias Platen <tplaten@posteo.de>
Wed, 31 Mar 2021 19:45:57 +0000 (21:45 +0200)
src/soc/decoder/isa/radixmmu.py

index c49a93877808854aade8346e1ddaff82eb65576d..a1b6d38da2f83bfa64f3d2d519f064ef48991451 100644 (file)
@@ -454,7 +454,7 @@ class RADIX:
                     return paddr
                 return ok # return the error code
             else:
-                newlookup = self._new_lookup(data, mbits, shift)
+                newlookup = self._new_lookup(data, shift)
                 if newlookup == 'badtree':
                     return newlookup
                 shift, mask, pgbase = newlookup
@@ -470,7 +470,7 @@ class RADIX:
                 print("addr_next",addr_next)
                 print("addrsh",addrsh)
 
-    def _new_lookup(self, data, mbits, shift):
+    def _new_lookup(self, data, shift):
         """
         mbits := unsigned('0' & data(4 downto 0));
         if mbits < 5 or mbits > 16 or mbits > r.shift then