From 53e6d6427cb6c51ff645c4c47c5b62072f8fb1d6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 24 Mar 2021 09:27:29 +0000 Subject: [PATCH] fix nonzero test in ISACaller RADIXMMU --- 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 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: -- 2.30.2