From dcf54ec8a0b4ca4c15671705b1d4195a403b7d46 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 17 Jan 2015 18:48:50 -0800 Subject: [PATCH] armjit: Burn less hard without a quad mapping. --- Core/MIPS/ARM/ArmRegCacheFPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/MIPS/ARM/ArmRegCacheFPU.cpp b/Core/MIPS/ARM/ArmRegCacheFPU.cpp index 494c06f67b..6c03a19b67 100644 --- a/Core/MIPS/ARM/ArmRegCacheFPU.cpp +++ b/Core/MIPS/ARM/ArmRegCacheFPU.cpp @@ -916,6 +916,8 @@ ARMReg ArmRegCacheFPU::QMapReg(int vreg, VectorSize sz, int flags) { // Find where we want to map it, obeying the constraints we gave. int quad = QGetFreeQuad(start, count, "mapping"); + if (quad < 0) + return INVALID_REG; // If parts of our register are elsewhere, and we are dirty, we need to flush them // before we reload in a new location.