Skip to content

Commit

Permalink
Merge pull request #18281 from unknownbrackets/irjit-regcache
Browse files Browse the repository at this point in the history
irjit: Fix regcache disable for FPRs
  • Loading branch information
hrydgard authored Oct 1, 2023
2 parents 4d62b4c + 4e0761b commit 8bdcd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/MIPS/IR/IRRegCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bdcd89

Please sign in to comment.