From: Luke Kenneth Casson Leighton Date: Fri, 16 Apr 2021 18:03:58 +0000 (+0100) Subject: sigh, new_shift wrong bitwidth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf6a572c8f0bfcbe59fdfd4d22a7f6bb58cbef0f;p=soc.git sigh, new_shift wrong bitwidth --- diff --git a/src/soc/decoder/isa/radixmmu.py b/src/soc/decoder/isa/radixmmu.py index f4603604..1a37f15c 100644 --- a/src/soc/decoder/isa/radixmmu.py +++ b/src/soc/decoder/isa/radixmmu.py @@ -584,7 +584,7 @@ class RADIX: limit = shift + (31 - 12) if mbits.value < 5 or mbits.value > 16 or mbits.value > limit.value: return "badtree" - new_shift = limit - mbits + new_shift = SelectableInt(limit.value - mbits.value, shift.bits) # TODO verify that returned result is correct return new_shift