From: Luke Kenneth Casson Leighton Date: Thu, 11 Mar 2021 18:19:43 +0000 (+0000) Subject: whoops PIDR is defined as 32-bits in SPRs.csv (and spec) X-Git-Tag: convert-csv-opcode-to-binary~62 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e4b1c04b2e7fd655f9a35e796028a41a756cf1b;p=soc.git whoops PIDR is defined as 32-bits in SPRs.csv (and spec) --- 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,