From efebdc90f6872a43a91e8a30bebf072a180bc827 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 30 Apr 2021 11:23:57 +0100 Subject: [PATCH] https://bugs.libre-soc.org/show_bug.cgi?id=635 turned out to be as simple as the test infrastructure setting initial values in the wrong regfile (only a few of the unit tests set initial values in SPR regfiles) --- src/soc/simple/test/test_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index c40644c7..cc53fbd3 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -122,9 +122,9 @@ def setup_regs(pdecode2, core, test): print("setting fast reg %d (%s) to %x" % (fast, sprname, val)) if fregs.unary: - rval = core.regs.int.regs[fast].reg + rval = fregs.int.regs[fast].reg else: - rval = core.regs.int.memory._array[fast] + rval = fregs.memory._array[fast] yield rval.eq(val) # allow changes to settle before reporting on XER -- 2.30.2