projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ff2e58
)
cleanup test_issuer_mmu_data_path.py
author
Tobias Platen
<tplaten@posteo.de>
Sun, 17 Jan 2021 15:59:22 +0000
(16:59 +0100)
committer
Tobias Platen
<tplaten@posteo.de>
Sun, 17 Jan 2021 15:59:22 +0000
(16:59 +0100)
src/soc/fu/mmu/test/test_issuer_mmu_data_path.py
patch
|
blob
|
history
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 31925c3fc078b3eb823b1d3757a4d00ceceb6fe1..88d9b6b153e568610676bf9378b2024ccd1b60d5 100644
(file)
--- a/
src/soc/fu/mmu/test/test_issuer_mmu_data_path.py
+++ b/
src/soc/fu/mmu/test/test_issuer_mmu_data_path.py
@@
-8,15
+8,21
@@
from soc.fu.test.common import (
TestAccumulatorBase, skip_case, TestCase, ALUHelpers)
# this test case takes about half a minute to run on my Talos II
TestAccumulatorBase, skip_case, TestCase, ALUHelpers)
# this test case takes about half a minute to run on my Talos II
-class MMU
DataPath
TestCase(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):
# 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
]
initial_regs = [0] * 32
@@
-30,7
+36,6
@@
class MMUDataPathTestCase(TestAccumulatorBase):
if __name__ == "__main__":
unittest.main(exit=False)
suite = unittest.TestSuite()
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)
runner = unittest.TextTestRunner()
runner.run(suite)