From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 18:24:34 +0000 (+0100) Subject: oe_ok renamed to oe, needed in regspec_decode_read X-Git-Tag: semi_working_ecp5~135 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0aa4bba9c07cda56766b58159390934fdd62033;p=soc.git oe_ok renamed to oe, needed in regspec_decode_read --- 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) |