From ebfa3de3881103685951bef05f4e81086c845a15 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 11 Aug 2013 16:28:20 -0700 Subject: [PATCH] Fix a couple potential infinite loops. --- Core/MIPS/MIPSIntVFPU.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/MIPS/MIPSIntVFPU.cpp b/Core/MIPS/MIPSIntVFPU.cpp index 2922029a11..8d413a366f 100644 --- a/Core/MIPS/MIPSIntVFPU.cpp +++ b/Core/MIPS/MIPSIntVFPU.cpp @@ -328,6 +328,8 @@ namespace MIPSInt case 7: m=one; break; // vmone default: _dbg_assert_msg_(CPU,0,"Trying to interpret instruction that can't be interpreted"); + PC += 4; + EatPrefixes(); return; } @@ -350,6 +352,8 @@ namespace MIPSInt case 7: v=ones; break; //vone default: _dbg_assert_msg_(CPU,0,"Trying to interpret instruction that can't be interpreted"); + PC += 4; + EatPrefixes(); return; } float o[4]; @@ -1529,6 +1533,8 @@ namespace MIPSInt break; default: _dbg_assert_msg_(CPU,0,"unknown min/max op %d", cond); + PC += 4; + EatPrefixes(); return; } ApplyPrefixD(d, sz);