From 8e4b1c04b2e7fd655f9a35e796028a41a756cf1b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 11 Mar 2021 18:19:43 +0000 Subject: [PATCH] whoops PIDR is defined as 32-bits in SPRs.csv (and spec) --- src/soc/decoder/isa/radixmmu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/decoder/isa/radixmmu.py b/src/soc/decoder/isa/radixmmu.py index e868e1fb..8b716aa5 100644 --- a/src/soc/decoder/isa/radixmmu.py +++ b/src/soc/decoder/isa/radixmmu.py @@ -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, -- 2.30.2