self.rin = rin = RegStage("r_in")
r = RegStage("r")
+ # get access to prtbl and pid for debug / testing purposes ONLY
+ # (actually, not needed, because setup_regs() triggers mmu direct)
+ # self._prtbl = r.prtbl
+ # self._pid = r.pid
+
l_in = self.l_in
l_out = self.l_out
d_out = self.d_out
yield fsm.mmu.l_in.rs.eq(val)
yield
yield fsm.mmu.l_in.mtspr.eq(0)
- print("mmu_spr was updated")
+ print("mmu_spr %s %d was updated %x" % (name, i, val))
def setup_regs(pdecode2, core, test):
sprname = spr_dict[sprname].SPR
if sprname == 'XER':
continue
+ print ('set spr %s val %x' % (sprname, val))
+
fast = spr_to_fast_reg(sprname)
+
if fast is None:
# match behaviour of SPRMap in power_decoder2.py
for i, x in enumerate(SPR):
if sprname not in mmu_sprs:
yield sregs.memory._array[i].eq(val)
else:
- yield from set_mmu_spr(sprname, i, val, core)
+ yield from set_mmu_spr(sprname, x.value, val, core)
else:
print("setting fast reg %d (%s) to %x" %
(fast, sprname, val))