From a0aa4bba9c07cda56766b58159390934fdd62033 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 19:24:34 +0100 Subject: [PATCH] oe_ok renamed to oe, needed in regspec_decode_read --- src/soc/decoder/power_regspec_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/decoder/power_regspec_map.py b/src/soc/decoder/power_regspec_map.py index 6c1e76e7..05ff4814 100644 --- a/src/soc/decoder/power_regspec_map.py +++ b/src/soc/decoder/power_regspec_map.py @@ -77,10 +77,10 @@ def regspec_decode_read(e, regfile, name): if name == 'xer_so': # SO needs to be read for overflow *and* for creation # of CR0 and also for MFSPR - return ((e.do.oe.oe[0] & e.do.oe.oe_ok) | (e.xer_in & SO == SO)| + return ((e.do.oe.oe[0] & e.do.oe.ok) | (e.xer_in & SO == SO)| (e.do.rc.rc & e.do.rc.ok)), SO if name == 'xer_ov': - return ((e.do.oe.oe[0] & e.do.oe.oe_ok) | + return ((e.do.oe.oe[0] & e.do.oe.ok) | (e.xer_in & CA == CA)), OV if name == 'xer_ca': return ((e.do.input_carry == CryIn.CA.value) | -- 2.30.2