From 9d3cf346c396a4769b1e5caa2b670dbccc1f7bf0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 18 Aug 2014 07:45:41 -0700 Subject: [PATCH] Clarify GetSureBranchTarget() for fpu branches. They also have CONDTYPE_ flags. Looks like this was just getting lucky that rs can't equal rt, but the code looks confusing when you're looking at it from an fpu/vfpu perspective. --- Core/MIPS/MIPSCodeUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSCodeUtils.cpp b/Core/MIPS/MIPSCodeUtils.cpp index 6e4c7fbb89..0d99367a07 100644 --- a/Core/MIPS/MIPSCodeUtils.cpp +++ b/Core/MIPS/MIPSCodeUtils.cpp @@ -93,7 +93,7 @@ namespace MIPSCodeUtils if (op != 0) { MIPSInfo info = MIPSGetInfo(op); - if (info & IS_CONDBRANCH) + if ((info & IS_CONDBRANCH) && !(info & (IN_FPUFLAG | IS_VFPU))) { bool sure; bool takeBranch;