From: Tobias Platen Date: Thu, 4 Feb 2021 19:26:51 +0000 (+0100) Subject: update test_issuer_mmu_data_path.py to handle SPRs X-Git-Tag: convert-csv-opcode-to-binary~261 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e25f96dffba9a2a6ca220bbb03bd6f4631babc8;p=soc.git update test_issuer_mmu_data_path.py to handle SPRs --- 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 f6208229..9d1836e5 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 @@ -17,12 +17,11 @@ class MMUTestCase(TestAccumulatorBase): 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", # TODO - #"mtspr 19, 2", # TODO - #"std 1, 0(2)" - "lhz 3, 0(1)" # load some data + "mtspr 18, 1", # reg 1 to DSISR + "mtspr 19, 2", # reg 2 to DAR + "mfspr 1, 18", # DSISR to reg 1 + "mfspr 2, 19", # DAR to reg 2 + "lhz 3, 0(1)" # load some data ] initial_regs = [0] * 32