if name == 'msr':
return Const(1), MSR # TODO: detect read-conditions
# TODO: remap the SPR numbers to FAST regs
- if name == 'spr1':
+ if name == 'fast1':
return e.read_fast1.ok, 1<<e.read_fast1.data
- if name == 'spr2':
+ if name == 'fast2':
return e.read_fast2.ok, 1<<e.read_fast2.data
if regfile == 'SPR':
if name == 'msr':
return None, MSR # hmmm
# TODO: remap the SPR numbers to FAST regs
- if name == 'spr1':
+ if name == 'fast1':
return e.write_fast1, 1<<e.write_fast1.data
- if name == 'spr2':
+ if name == 'fast2':
return e.write_fast2, 1<<e.write_fast2.data
if regfile == 'SPR':
# Link SPR
lk = yield dec2.e.lk
- branch_lk = 'spr2' in res
+ branch_lk = 'fast2' in res
self.assertEqual(lk, branch_lk, code)
if lk:
- branch_lr = res['spr2']
+ branch_lr = res['fast2']
self.assertEqual(sim.spr['LR'], branch_lr, code)
# CTR SPR
- ctr_ok = 'spr1' in res
+ ctr_ok = 'fast1' in res
if ctr_ok:
- ctr = res['spr1']
+ ctr = res['fast1']
self.assertEqual(sim.spr['CTR'], ctr, code)