Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 1188:1cc9bb0b3848
prev1187:266e7a1bae90
next1195:072131b61d2a
author Nathan Keynes <nkeynes@lxdream.org>
date Thu Dec 01 01:50:44 2011 +1000 (10 years ago)
permissions -rw-r--r--
last change Rearrange the profile dump code so as to avoid xlat => SH4 references
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Tue Nov 29 17:52:43 2011 +1000
1.2 +++ b/src/sh4/sh4trans.c Thu Dec 01 01:50:44 2011 +1000
1.3 @@ -292,3 +292,14 @@
1.4 sh4_translate_disasm_block( stderr, code, sh4_pc, NULL );
1.5 }
1.6
1.7 +void sh4_translate_dump_cache_by_activity( unsigned int topN )
1.8 +{
1.9 + struct xlat_block_ref blocks[topN];
1.10 + topN = xlat_get_cache_blocks_by_activity(blocks, topN);
1.11 + unsigned int i;
1.12 + for( i=0; i<topN; i++ ) {
1.13 + fprintf( stderr, "0x%08X (%p): %d \n", blocks[i].pc, blocks[i].block->code, blocks[i].block->active);
1.14 + sh4_translate_disasm_block( stderr, blocks[i].block->code, blocks[i].pc, NULL );
1.15 + fprintf( stderr, "\n" );
1.16 + }
1.17 +}
.