irjit: Fix regcache disable for FPRs.

This commit is contained in:
Unknown W. Brackets 2023-09-30 13:55:00 -07:00
parent aedd51f2f6
commit 4e0761b104

View File

@ -687,7 +687,7 @@ void IRNativeRegCacheBase::FlushAll(bool gprs, bool fprs) {
for (int i = 1; i < TOTAL_MAPPABLE_IRREGS; i++) {
IRReg mipsReg = (IRReg)i;
if (!fprs && i >= 32 && IsValidFPR(mipsReg))
if (!fprs && i >= 32 && IsValidFPR(mipsReg - 32))
continue;
if (!gprs && IsValidGPR(mipsReg))
continue;