From: Luke Kenneth Casson Leighton Date: Fri, 21 Jan 2022 00:11:53 +0000 (+0000) Subject: whoops fix bug in setting of DEC/TB (State) in test_core.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc0f99a9398cf638c509bd68d1533d1dd701268d;p=soc.git whoops fix bug in setting of DEC/TB (State) in test_core.py --- diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index 73718f27..5d6bebc5 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -173,7 +173,7 @@ def setup_regs(pdecode2, core, test): print("setting state reg %d (%s) to %x" % (state, sprname, val)) if stateregs.unary: - rval = stateregs.int.regs[state].reg + rval = stateregs.regs[state].reg else: rval = stateregs.memory._array[state] yield rval.eq(val)