From bf6a572c8f0bfcbe59fdfd4d22a7f6bb58cbef0f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 16 Apr 2021 19:03:58 +0100 Subject: [PATCH] sigh, new_shift wrong bitwidth --- src/soc/decoder/isa/radixmmu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2