IOP: Warn on branches to zero

This commit is contained in:
Ty Lamontagne 2021-07-14 21:27:28 -04:00 committed by refractionpcsx2
parent a949b24434
commit 49986bab5e
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* PCSX2 - PS2 Emulator for PCs
* Copyright (C) 2002-2010 PCSX2 Dev Team
* Copyright (C) 2002-2021 PCSX2 Dev Team
*
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Found-
@ -250,6 +250,9 @@ static __fi void execI()
}
static void doBranch(s32 tar) {
if (tar == 0x0)
DevCon.Warning("[R3000 Interpreter] Warning: Branch to 0x0!");
branch2 = iopIsDelaySlot = true;
branchPC = tar;
execI();