TestAccumulatorBase, skip_case, TestCase, ALUHelpers)
# this test case takes about half a minute to run on my Talos II
-class MMUDataPathTestCase(TestAccumulatorBase):
+class MMUTestCase(TestAccumulatorBase):
# MMU on microwatt handles MTSPR, MFSPR, DCBZ and TLBIE.
# libre-soc has own SPR unit
# other instructions here -> must be load/store
def case_mfspr_after_invalid_load(self):
- lst = [
- "tlbie 0,0,0,0,0", # RB,RS,RIC,PRS,R
- "dcbz 1,2"
+ lst = [
+ "dcbz 1,2",
+ "tlbie 0,0,0,0,0", # RB,RS,RIC,PRS,R
+ #"mfspr 1, 18", # DSISR to reg 1
+ #"mfspr 2, 19", # DAR to reg 2
+ #"mtspr 18, 1",
+ #"mtspr 19, 2",
+ #test ldst instructions
+ "lhz 3, 0(1)" # lhz RT,D(RA) -> this should go through the mmu
]
initial_regs = [0] * 32
if __name__ == "__main__":
unittest.main(exit=False)
suite = unittest.TestSuite()
- suite.addTest(TestRunner(MMUDataPathTestCase().test_data,microwatt_mmu=True))
-
+ suite.addTest(TestRunner(MMUTestCase().test_data,microwatt_mmu=True))
runner = unittest.TextTestRunner()
runner.run(suite)