From: Luke Kenneth Casson Leighton Date: Wed, 24 Mar 2021 09:27:29 +0000 (+0000) Subject: fix nonzero test in ISACaller RADIXMMU X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53e6d6427cb6c51ff645c4c47c5b62072f8fb1d6;p=soc.git fix nonzero test in ISACaller RADIXMMU --- diff --git a/src/soc/decoder/isa/radixmmu.py b/src/soc/decoder/isa/radixmmu.py index 10b95ff0..edb3c8bb 100644 --- a/src/soc/decoder/isa/radixmmu.py +++ b/src/soc/decoder/isa/radixmmu.py @@ -486,7 +486,7 @@ class RADIX: nonzero = addr[1:32] & mask[13:44] # mask 31 LSBs (BE numbered 13:44) print ("RADIX _segment_check nonzero", bin(nonzero.value)) print ("RADIX _segment_check addr[0-1]", addr[0].value, addr[1].value) - if addr[0] != addr[1] or nonzero == 1: + if addr[0] != addr[1] or nonzero != 0: return "segerror" limit = shift + (31 - 12) if mbits < 5 or mbits > 16 or mbits > limit: