From: Tobias Platen Date: Tue, 19 Jan 2021 18:54:45 +0000 (+0100) Subject: test_issuer_mmu_data_path.py: test both ld and st instructions X-Git-Tag: 24jan2021_ls180~17 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3518c40bb13ea2c5bb036045afadf19bb04fc270;p=soc.git test_issuer_mmu_data_path.py: test both ld and st instructions --- diff --git a/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py b/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py index 88d9b6b1..f6208229 100644 --- a/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py +++ b/src/soc/fu/mmu/test/test_issuer_mmu_data_path.py @@ -13,19 +13,20 @@ class MMUTestCase(TestAccumulatorBase): # libre-soc has own SPR unit # other instructions here -> must be load/store - def case_mfspr_after_invalid_load(self): + def case_mmu_ldst(self): 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 + #"mtspr 18, 1", # TODO + #"mtspr 19, 2", # TODO + #"std 1, 0(2)" + "lhz 3, 0(1)" # load some data ] initial_regs = [0] * 32 + #initial_regs[1] = 0xDEADBEEF #FIXME initial_sprs = {'DSISR': 0x12345678, 'DAR': 0x87654321} initial_sprs = {}