Suggest tweaking the setting "Stub PPU Traps" after PPU trap (#10921)

This commit is contained in:
Eladash 2021-09-30 21:33:55 +03:00 committed by GitHub
parent 65e9388f00
commit 71b15c1fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1633,7 +1633,7 @@ void ppu_trap(ppu_thread& ppu, u64 addr)
// If stubbing is enabled, check current instruction and the following
if (!add || !vm::check_addr(ppu.cia, vm::page_executable) || !vm::check_addr(ppu.cia + add, vm::page_executable))
{
fmt::throw_exception("PPU Trap!");
fmt::throw_exception("PPU Trap! Sometimes tweaking the setting \"Stub PPU Traps\" can be a workaround to this crash.\nBest values depend on game code, if unsure try 1.");
}
ppu_log.error("PPU Trap: Stubbing %d instructions %s.", std::abs(static_cast<s32>(add) / 4), add >> 31 ? "backwards" : "forwards");