From 2602ef09d3ea2c1601821f6751aa39a72d3999f8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 9 Mar 2021 19:38:24 +0000 Subject: [PATCH] call decode_ptre on address to obtain shift, mbits, and pgbase --- src/soc/decoder/isa/radixmmu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2