From 7817346a1defbbc86f2bf22ad5183022efebab60 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Jul 2020 20:24:45 +0100 Subject: [PATCH] resolving old and new behaviour for lookup of SPRs --- src/soc/simple/test/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/simple/test/test_core.py b/src/soc/simple/test/test_core.py index 04108cdc..7cec69ce 100644 --- a/src/soc/simple/test/test_core.py +++ b/src/soc/simple/test/test_core.py @@ -85,7 +85,7 @@ def setup_regs(core, test): sregs = core.regs.spr for sprname, val in test.sprs.items(): if isinstance(sprname, int): - sprname = spr_dict[sprname].name + sprname = spr_dict[sprname].SPR if sprname == 'XER': continue fast = spr_to_fast_reg(sprname) -- 2.30.2