From: Luke Kenneth Casson Leighton Date: Wed, 8 Jul 2020 19:24:45 +0000 (+0100) Subject: resolving old and new behaviour for lookup of SPRs X-Git-Tag: div_pipeline~145 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7817346a1defbbc86f2bf22ad5183022efebab60;p=soc.git resolving old and new behaviour for lookup of SPRs --- 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)