Merge pull request #18281 from unknownbrackets/irjit-regcache

irjit: Fix regcache disable for FPRs
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-10-01 11:10:50 +02:00
commit 8bdcd89b77
1 file changed
+1 -1
+1 -1
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;