Search
lxdream.org :: lxdream/test/sh4/testmmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/testmmu.c
changeset 1090:71e28626b358
prev976:e57a25d9eb7d
author nkeynes
date Mon Dec 07 17:44:27 2009 +1000 (11 years ago)
permissions -rw-r--r--
last change Prevent writes to the mmu page tables when the TLB is disabled.
file annotate diff log raw
1.1 --- a/test/sh4/testmmu.c Mon Jan 26 12:32:23 2009 +0000
1.2 +++ b/test/sh4/testmmu.c Mon Dec 07 17:44:27 2009 +1000
1.3 @@ -68,9 +68,14 @@
1.4 {
1.5 /* Non-TLB behaviour tests */
1.6
1.7 + install_utlb_test_handler();
1.8
1.9 + /* TLB off tests (make sure the MMU _stays_ off) */
1.10 + LOAD( 62, 0, 0x0C000000, 0x0CFFFC00, TLB_VALID|TLB_USERMODE|TLB_WRITABLE|TLB_SIZE_1K|TLB_CACHEABLE|TLB_DIRTY );
1.11 + TEST( "TLB OFF", 0, 0x0C000018, 0x0C000018, OK, OK, OK, OK );
1.12 + TEST( "TLB OFF", 1, 0x0C000018, 0x0C000018, OK, OK, OK, OK );
1.13 +
1.14 /* TLB tests */
1.15 - install_utlb_test_handler();
1.16 invalidate_tlb();
1.17 /* Permanently map the first and last MB of RAM into userspace - without
1.18 * this it's a bit hard to actually run any user-mode tests.
.