added branch cache to sh2 drc to improve cross-tcache jump speed

This commit is contained in:
kub 2019-04-04 20:29:39 +02:00
parent 6822ba9d64
commit d760c90f3a
4 changed files with 143 additions and 16 deletions

View file

@ -50,6 +50,9 @@ typedef struct SH2_
int poll_cycles;
int poll_cnt;
// DRC branch cache. size must be 2^n and <=128
struct { unsigned int pc; void *code; } branch_cache[128];
// interpreter stuff
int icount; // cycles left in current timeslice
unsigned int ea;