projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289bd65
)
put set_msr and set_cia back in for now
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 21 Jul 2020 18:36:09 +0000
(19:36 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 21 Jul 2020 18:36:09 +0000
(19:36 +0100)
src/soc/fu/test/common.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/test/common.py
b/src/soc/fu/test/common.py
index 036084e562a9f634c5aa486b61556a793029227d..a4b9f0e8e7099360079fed7b6997a032cd91634d 100644
(file)
--- 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'])