projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5fa4b
)
mmu testcase: set MMU SPRs
author
Tobias Platen
<tplaten@posteo.de>
Sat, 20 Feb 2021 11:53:41 +0000
(12:53 +0100)
committer
Tobias Platen
<tplaten@posteo.de>
Sat, 20 Feb 2021 11:53:41 +0000
(12:53 +0100)
src/soc/fu/mmu/test/test_issuer_mmu_rom.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/mmu/test/test_issuer_mmu_rom.py
b/src/soc/fu/mmu/test/test_issuer_mmu_rom.py
index 5e78726955732ef9a977a5efae0ba428be3e9d94..ed71bf43ea55a2b4aa8b242001904b1228d3deef 100644
(file)
--- a/
src/soc/fu/mmu/test/test_issuer_mmu_rom.py
+++ b/
src/soc/fu/mmu/test/test_issuer_mmu_rom.py
@@
-36,10
+36,15
@@
class MMUTestCase(TestAccumulatorBase):
def case_mmu_ldst(self):
lst = [
+ "mtspr 720, 1",
"lhz 3, 0(1)" # load some data
]
initial_regs = [0] * 32
+
+ prtbl = 0x1000000
+ initial_regs[1] = prtbl
+
initial_sprs = {}
self.add_case(Program(lst, bigendian),
@@
-48,6
+53,8
@@
class RomDBG():
def __init__(self):
self.rom = default_mem
self.debug = open("/tmp/rom.log","w")
+
+ # yield mmu.rin.prtbl.eq(0x1000000) # set process table -- SPR_PRTBL = 720
rom_dbg = RomDBG()