mirror of https://github.com/mgba-emu/mgba.git
GBA: Loosen checks on idle loops
This commit is contained in:
parent
291d5c500b
commit
1c10743995
|
@ -197,7 +197,7 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
|
||||||
|
|
||||||
int newRegion = address >> BASE_OFFSET;
|
int newRegion = address >> BASE_OFFSET;
|
||||||
if (gba->idleOptimization >= IDLE_LOOP_REMOVE && memory->activeRegion != REGION_BIOS) {
|
if (gba->idleOptimization >= IDLE_LOOP_REMOVE && memory->activeRegion != REGION_BIOS) {
|
||||||
if (address == gba->lastJump && address == gba->idleLoop) {
|
if (address == gba->idleLoop) {
|
||||||
GBAHalt(gba);
|
GBAHalt(gba);
|
||||||
} else if (gba->idleOptimization >= IDLE_LOOP_DETECT && newRegion == memory->activeRegion) {
|
} else if (gba->idleOptimization >= IDLE_LOOP_DETECT && newRegion == memory->activeRegion) {
|
||||||
if (address == gba->lastJump) {
|
if (address == gba->lastJump) {
|
||||||
|
|
Loading…
Reference in New Issue