Skip to content

Commit

Permalink
improve nester's funky bowling speedhack
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Mar 31, 2024
1 parent 281c6bf commit c0d27a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/common/drc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,11 @@ static void drc_findLastConditionalInst(int pos) {
break;
case V810_OP_JAL:
// nester's funky bowling calls a function to do its busywait read
// and it does this twice
if (tVBOpt.CRC32 == 0xDF4D56B4 && (inst_cache[i].PC == 0x700a01a || inst_cache[i].PC == 0x700a094))
break;
// and it does this several times
if (tVBOpt.CRC32 == 0xDF4D56B4 && (
inst_cache[i].PC + inst_cache[i].branch_offset == 0x07005326 ||
inst_cache[i].PC + inst_cache[i].branch_offset == 0x07001f2c
)) break;
case V810_OP_ADD:
case V810_OP_OR:
// only certain operators are ok for busywait here, otherwise fallthrough
Expand Down

0 comments on commit c0d27a9

Please sign in to comment.