class MMUTestCase(TestAccumulatorBase):
# MMU handles MTSPR, MFSPR, DCBZ and TLBIE.
# other instructions here -> must be load/store
+
+ #before running the test case: set DISR and DAR
+
def case_mfspr_after_invalid_load(self):
- lst = [ "lhz 3, 0(1)" , # case 1 load -- test infrastructure needed
- "mfspr 18, 1", # DSISR to reg 1 -- KeyError: 2 in simulator
- "mfspr 19, 2", # DAR to reg 2 -- with key = spr_dict[key].SPR
+ lst = [ # TODO -- set SPR on both sinulator and port interface
+ "mfspr 1, 18", # DSISR to reg 1 -- KeyError: 2 in simulator
+ "mfspr 2, 19", # DAR to reg 2 -- with key = spr_dict[key].SPR
# TODO -- verify returned sprvals
]
initial_regs = [0] * 32
- initial_regs[1] = 0xBADCAB1E
- initial_regs[2] = 0xDEADC0DE
- initial_regs[5] = 0x100
- initial_regs[6] = 0x100
initial_sprs = {'SRR0': 0x12345678, 'SRR1': 0x5678, 'LR': 0x1234,
'XER': 0xe00c0000}