sh2 drc, improve cycle resolution for poll detection

This commit is contained in:
kub 2022-04-19 13:30:26 +00:00
parent 192ab01579
commit b4c25401da
2 changed files with 33 additions and 2 deletions

View file

@ -437,7 +437,7 @@ static u32 literal_pool[MAX_HOST_LITERALS];
static u32 *literal_insn[MAX_HOST_LITERALS];
static int literal_pindex, literal_iindex;
static int emith_pool_literal(u32 imm, int *offs)
static inline int emith_pool_literal(u32 imm, int *offs)
{
int idx = literal_pindex - 8; // max look behind in pool
// see if one of the last literals was the same (or close enough)