filename | src/test/testxlt.c |
changeset | 1195:072131b61d2a |
prev | 1189:1540105786c8 |
author | nkeynes |
date | Mon Dec 12 21:15:44 2011 +1000 (10 years ago) |
permissions | -rw-r--r-- |
last change | Handle branch delay-slot instruction that falls on the next page correctly. - Generate the right end PC in the first place (sh4trans.c) - Allow blocks to be marked as both entry point + continuation, and specifically handle invalidation when first entry of a page is a continuation == flush previous page as well. |
file | annotate | diff | log | raw |
1.1 --- a/src/test/testxlt.c Thu Dec 01 08:02:13 2011 +10001.2 +++ b/src/test/testxlt.c Mon Dec 12 21:15:44 2011 +10001.3 @@ -37,7 +37,7 @@1.4 assert( block->active == 1 );1.5 assert( block->size == XLAT_NEW_CACHE_SIZE - (2*sizeof(struct xlat_cache_block)) );1.6 memset( block->code, 0xB5, 8192 );1.7 - xlat_commit_block( 8192, 100 );1.8 + xlat_commit_block( 8192, 0x0C008000, 0x0C008100 );1.9 assert( block->active == 1 );1.10 assert( block->size == 8192 );1.12 @@ -46,7 +46,7 @@1.13 assert( block2->active == 1 );1.14 assert( block2->size == XLAT_NEW_CACHE_SIZE - (3*sizeof(struct xlat_cache_block)) - 8192 );1.15 memset( block2->code, 0x6D, size );1.16 - xlat_commit_block( size, 200 );1.17 + xlat_commit_block( size, 0x0C009000, 0x0C009200 );1.18 assert( block2->active == 1 );1.19 assert( block2->size == size );1.21 @@ -74,7 +74,7 @@1.22 for( i=4096; i<8192; i++ ) {1.23 assert( block3a->code[i] == 0xB5 );1.24 }1.25 - xlat_commit_block(6142, 432);1.26 + xlat_commit_block(6142, 0x0D009800, 0x0D009C32);1.27 addr = xlat_get_code( 0x0D009800 );1.28 assert( addr == &block3a->code );1.29 }
.