From: Luke Kenneth Casson Leighton Date: Tue, 9 Mar 2021 19:38:24 +0000 (+0000) Subject: call decode_ptre on address to obtain shift, mbits, and pgbase X-Git-Tag: convert-csv-opcode-to-binary~68 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2602ef09d3ea2c1601821f6751aa39a72d3999f8;p=soc.git call decode_ptre on address to obtain shift, mbits, and pgbase --- diff --git a/src/soc/decoder/isa/radixmmu.py b/src/soc/decoder/isa/radixmmu.py index f860e417..2fea72f8 100644 --- a/src/soc/decoder/isa/radixmmu.py +++ b/src/soc/decoder/isa/radixmmu.py @@ -189,7 +189,9 @@ class RADIX: def ld(self, address, width=8, swap=True, check_in_mem=False): print("RADIX: ld from addr 0x%x width %d" % (address, width)) - shift = SelectableInt(0, 32) + (shift, mbits, pgbase) = self._decode_prte(addr) + #shift = SelectableInt(0, 32) + pte = self._walk_tree(address,shift) # use pte to caclculate phys address return self.mem.ld(address, width, swap, check_in_mem)