From: Luke Kenneth Casson Leighton Date: Tue, 21 Jul 2020 18:36:09 +0000 (+0100) Subject: put set_msr and set_cia back in for now X-Git-Tag: semi_working_ecp5~648 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd0fd6811a743e717d24ddb071b776142f7ec9d2;p=soc.git put set_msr and set_cia back in for now --- diff --git a/src/soc/fu/test/common.py b/src/soc/fu/test/common.py index 036084e5..a4b9f0e8 100644 --- a/src/soc/fu/test/common.py +++ b/src/soc/fu/test/common.py @@ -144,6 +144,16 @@ class ALUHelpers: print ("extra inputs: so", so) yield alu.p.data_i.xer_so.eq(so) + def set_msr(alu, dec2, inp): + print ("TODO: deprecate set_msr") + if 'msr' in inp: + yield alu.p.data_i.msr.eq(inp['msr']) + + def set_cia(alu, dec2, inp): + print ("TODO: deprecate set_cia") + if 'cia' in inp: + yield alu.p.data_i.cia.eq(inp['cia']) + def set_slow_spr1(alu, dec2, inp): if 'spr1' in inp: yield alu.p.data_i.spr1.eq(inp['spr1'])