add a printf to elaborate cause of "SYSTEM POWERED OFF VIA ARM7 SPI POWER DEVICE" for homebrewers (main() returned)

This commit is contained in:
zeromus 2011-06-17 05:17:55 +00:00
parent d1e5efcda9
commit da92d102f4
1 changed files with 1 additions and 0 deletions

View File

@ -3903,6 +3903,7 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
//our totally pathetic register handling, only the one thing we've wanted so far
if(MMU.powerMan_Reg[0]&PM_SYSTEM_PWR) {
printf("SYSTEM POWERED OFF VIA ARM7 SPI POWER DEVICE\n");
printf("Did your main() return?\n");
emu_halt();
}
}