whoops fix bug in setting of DEC/TB (State) in test_core.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Jan 2022 00:11:53 +0000 (00:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Jan 2022 00:11:53 +0000 (00:11 +0000)
src/soc/simple/test/test_core.py

index 73718f279ec2c0ebb67d6540dcb7547ba6fb47fa..5d6bebc58d82c643ea42b6f882fd8193b199631b 100644 (file)
@@ -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)