GBA BIOS: Fix CpuSet on 0x01XXXXXX addresses

This commit is contained in:
Jeffrey Pfau 2015-11-06 21:04:55 -08:00
parent 51c79d0cf0
commit 7fb51f865e
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Bugfixes:
- Qt: Fix font size in memory viewer
- Qt: Fix a crash in the memory viewer
- Libretro: Fix problems with rumble not turning off
- GBA BIOS: Fix CpuSet on 0x01XXXXXX addresses
Misc:
- GBA Audio: Implement missing flags on SOUNDCNT_X register

View File

@ -220,7 +220,7 @@ void GBASwi16(struct ARMCore* cpu, int immediate) {
break;
case 0xB:
case 0xC:
if (cpu->gprs[0] >> BASE_OFFSET == REGION_BIOS) {
if (cpu->gprs[0] >> BASE_OFFSET < REGION_WORKING_RAM) {
GBALog(gba, GBA_LOG_GAME_ERROR, "Cannot CpuSet from BIOS");
return;
}