sh2 drc comments and missing pandora file

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@854 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2010-01-07 20:16:22 +00:00
parent 44e6452e02
commit 9bb5d91c48
2 changed files with 25 additions and 2 deletions

View file

@ -4,7 +4,20 @@
* notes:
* - tcache, block descriptor, link buffer overflows result in sh2_translate()
* failure, followed by full tcache invalidation for that region
* - jumps between blocks are tracked for SMC handling (in block_links[])
* - jumps between blocks are tracked for SMC handling (in block_links[]),
* except jumps between different tcaches
*
* implemented:
* - static register allocation
* - remaining register caching and tracking in temporaries
* - block-local branch linking
* - block linking (except between tcaches)
*
* TODO:
* - proper SMC handling
* - constant propagation
* - stack caching?
* - bug fixing
*/
#include <stddef.h>
#include <stdio.h>
@ -2521,10 +2534,11 @@ void sh2_execute(SH2 *sh2c, int cycles)
}
#if (DRC_DEBUG & 1)
static void block_stats(void)
void block_stats(void)
{
int c, b, i, total = 0;
printf("block stats:\n");
for (b = 0; b < ARRAY_SIZE(block_tables); b++)
for (i = 0; i < block_counts[b]; i++)
if (block_tables[b][i].addr != 0)