class MMUTestCase(TestAccumulatorBase):
# now working correctly
- def cse_1_dcbz(self):
+ def case_1_dcbz(self):
lst = ["dcbz 1, 2", # MMUTEST.DCBZ: EA from adder 12
"dcbz 1, 3"] # MMUTEST.DCBZ: EA from adder 11
initial_regs = [0] * 32
initial_mem=initial_mem)
# MMUTEST: OP_TLBIE: insn_bits=39
- def cse_2_tlbie(self):
+ def case_2_tlbie(self):
lst = ["tlbie 1,1,1,1,1"] # tlbie RB,RS,RIC,PRS,R
initial_regs = [0] * 32
initial_mem = {}
initial_mem=initial_mem)
# OP_MTSPR: spr=720
- def cse_3_mtspr(self):
+ def case_3_mtspr(self):
lst = ["mtspr 720,1"] # mtspr PRTBL,r1
initial_regs = [0] * 32
initial_regs[1] = 0x1234
initial_mem=initial_mem)
# OP_MFSPR: spr=18/19
- def cse_4_mfspr(self):
+ def case_4_mfspr(self):
lst = ["mfspr 1,18", # mtspr r1,DSISR
"mfspr 2,19"] # mtspr r2,DAR
initial_regs = [0] * 32
initial_mem=initial_mem)
# new testcase for all sprs
- def cse_5_allsprs(self):
+ def case_5_allsprs(self):
lst = ["mtspr 720,1", #MMUTEST: OP_MTSPR: spr=720
"mtspr 48,2", #MMUTEST: OP_MTSPR: spr=48
"mtspr 18,3", #MMUTEST: OP_MTSPR: spr=18
initial_mem=initial_mem,initial_msr=initial_msr)
# deliberately misalign
- def cse_6_ldst_misalign(self):
+ def case_6_ldst_misalign(self):
lst = ["std 10,0(2)"]
initial_regs = [0] * 32
initial_regs[1] = 0x1234