whoops PIDR is defined as 32-bits in SPRs.csv (and spec)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 11 Mar 2021 18:19:43 +0000 (18:19 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 11 Mar 2021 18:19:43 +0000 (18:19 +0000)
src/soc/decoder/isa/radixmmu.py

index e868e1fbf50706eaca47c025ec178faec6ec2b39..8b716aa55355713dad482a64cba8376dfd151f52 100644 (file)
@@ -438,12 +438,13 @@ class RADIX:
                 (effpid(31 downto 8) and finalmask(23 downto 0))) &
                 effpid(7 downto 0) & "0000";
         """
+        print ("_get_prtable_addr_", shift, prtbl, addr, pid)
         finalmask = genmask(shift, 44)
         finalmask24 = finalmask[20:44]
         if addr[0].value == 1:
             effpid = SelectableInt(0, 32)
         else:
-            effpid = pid[32:64] #self.pid[32:64] # TODO, check on this
+            effpid = pid #self.pid # TODO, check on this
         zero16 = SelectableInt(0, 16)
         zero4 = SelectableInt(0, 4)
         res = selectconcat(zero16,