Add a safety log for cases we don't handle right.

This commit is contained in:
Unknown W. Brackets 2013-08-14 23:14:25 -07:00
parent e639f8d15f
commit df50e03146
2 changed files with 4 additions and 0 deletions

View File

@ -282,6 +282,8 @@ void Jit::BranchVFPUFlag(u32 op, ArmGen::CCFlags cc, bool likely)
CONDITIONAL_NICE_DELAYSLOT;
if (!likely && delaySlotIsNice)
CompileDelaySlot(DELAYSLOT_NICE);
if (delaySlotIsBranch && (delaySlotOp & 0xFFFF) != offset - 1)
ERROR_LOG_REPORT(JIT, "VFPU branch in VFPU delay slot at %08x with different target", js.compilerPC);
FlushAll();

View File

@ -357,6 +357,8 @@ void Jit::BranchVFPUFlag(u32 op, Gen::CCFlags cc, bool likely)
CONDITIONAL_NICE_DELAYSLOT;
if (!likely && delaySlotIsNice)
CompileDelaySlot(DELAYSLOT_NICE);
if (delaySlotIsBranch && (signed short)(delaySlotOp & 0xFFFF) != (signed short)(op & 0xFFFF) - 1)
ERROR_LOG(JIT, "VFPU branch in VFPU delay slot at %08x with different target %d / %d", js.compilerPC, (signed short)(delaySlotOp & 0xFFFF), (signed short)(op & 0xFFFF) - 1);
FlushAll();