comb += done.eq(1) # FIXME l_out.done
with m.Case(MicrOp.OP_MFSPR):
- comb += Display("MMUTEST: OP_MFSPR: spr=%i",spr);
+ comb += Display("MMUTEST: OP_MFSPR: spr=%i returns=%i",
+ spr,spr1_i);
comb += o.data.eq(spr1_i)
comb += o.ok.eq(1)
comb += done.eq(1)
self.add_case(Program(lst, bigendian), initial_regs,
initial_mem=initial_mem)
- # BROKEN - missing expected Display output
+ # OP_MTSPR: spr=720
def case_3_mtspr(self):
lst = ["mtspr 720,1"] # mtspr PRTBL,r1
initial_regs = [0] * 32
self.add_case(Program(lst, bigendian), initial_regs,
initial_mem=initial_mem)
- # BROKEN - missing expected Display output
+ # OP_MFSPR: spr=18/19
def case_4_mfspr(self):
lst = ["mfspr 1,18", # mtspr r1,DSISR
"mfspr 2,19"] # mtspr r2,DAR