From 4861cadb79d583c50a97bf455992b7a47dbb9f7c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 4 Apr 2018 06:56:57 -0700 Subject: [PATCH] arm64jit: Fix reg size in jr delay slot path. Can't use the 64-bit reg. --- Core/MIPS/ARM64/Arm64CompBranch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MIPS/ARM64/Arm64CompBranch.cpp b/Core/MIPS/ARM64/Arm64CompBranch.cpp index 9d8f41fb8c..f203229674 100644 --- a/Core/MIPS/ARM64/Arm64CompBranch.cpp +++ b/Core/MIPS/ARM64/Arm64CompBranch.cpp @@ -576,7 +576,7 @@ void Arm64Jit::Comp_JumpReg(MIPSOpcode op) } else { // Since we can't be in a delay slot, should be safe to steal FLAGTEMPREG for a temp reg. // It will be saved, even if a function is called. - destReg = FLAGTEMPREG; + destReg = DecodeReg(FLAGTEMPREG); gpr.MapReg(rs); MOV(destReg, gpr.R(rs)); if (andLink)