GBA: Loosen checks on idle loops

This commit is contained in:
Jeffrey Pfau 2015-03-21 18:15:06 -07:00
parent 291d5c500b
commit 1c10743995
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
int newRegion = address >> BASE_OFFSET;
if (gba->idleOptimization >= IDLE_LOOP_REMOVE && memory->activeRegion != REGION_BIOS) {
if (address == gba->lastJump && address == gba->idleLoop) {
if (address == gba->idleLoop) {
GBAHalt(gba);
} else if (gba->idleOptimization >= IDLE_LOOP_DETECT && newRegion == memory->activeRegion) {
if (address == gba->lastJump) {