if isinstance(key, SelectableInt):
key = key.value
key = special_sprs.get(key, key)
- info = spr_byname[key]
+ if isinstance(key, int):
+ info = spr_dict[key]
+ else:
+ info = spr_byname[key]
if not isinstance(v, SelectableInt):
v = SelectableInt(v, info.length)
self[key] = v
inp = yield from get_cu_inputs(dec2, sim)
- yield from ALUHelpers.set_fast_cia(branch, dec2, inp)
+ yield from ALUHelpers.set_cia(branch, dec2, inp)
yield from ALUHelpers.set_fast_spr1(branch, dec2, inp)
yield from ALUHelpers.set_fast_spr2(branch, dec2, inp)
yield from ALUHelpers.set_cr_a(branch, dec2, inp)