}
+
# executable permission is barred here (EAA=0x2)
test2 = {
0x10000: # PARTITION_TABLE_2
#0x10004: 0
}
+
+
+# microwatt mmu.bin first part of test 3. PRTBL must be set to 0x12000, PID to 1
+microwatt_test3 = {
+ 0x10000: 0x0930010000000080, # leaf node
+ 0x12010: 0x0a00010000000000, # page table
+ 0x8108: 0x0000000badc0ffee, # memory to be looked up
+ }
+
from openpower.test.ldst.ldst_cases import LDSTTestCase
from openpower.test.ldst.ldst_exc_cases import LDSTExceptionTestCase
#from openpower.simulator.test_sim import (GeneralTestCases, AttnTestCase)
+from soc.experiment.test import pagetables
+
from openpower.simulator.program import Program
from openpower.endian import bigendian
initial_regs = [0] * 32
initial_regs[2] = 0x124108
- # no pre-loaded memory here
- initial_mem = {
- 0x12010: 0x0a00010000000000,
- 0x10000: 0x0930010000000080,
- 0x8108: 0x0000000badc0ffee,
- }
+ # memory same as microwatt test
+ initial_mem = pagetables.microwatt_test3
# set virtual and non-privileged
# msr: 8000000000000011
initial_msr=initial_msr)
-
-mmu_test3 = {
- 0x12010: 0x0a00010000000000,
- 0x10000: 0x0930010000000080,
- 0x8108: 0x0000000badc0ffee,
- }
-
if __name__ == "__main__":
svp64 = True
if len(sys.argv) == 2:
# MMU/DCache integration tests
suite.addTest(TestRunner(MMUTestCase().test_data, svp64=svp64,
microwatt_mmu=True,
- rom=mmu_test3))
+ rom=pagetables.microwatt_test3))
runner = unittest.TextTestRunner()
runner.run(suite)