x86jit: Fix pointer modify when masked.

This commit is contained in:
Unknown W. Brackets committed 2023-08-30 22:04:26 -07:00
1 parent 742dc0a0c7
commit d5a51da95e
1 file changed
+5
+5
View File
@@ -1058,9 +1058,14 @@ void IRNativeRegCacheBase::MapNativeReg(MIPSLoc type, IRNativeReg nreg, IRReg fi
case MIPSLoc::REG_AS_PTR:
_assert_msg_(lanes == 1, "Should have flushed before getting here");
_assert_msg_(type == MIPSLoc::REG, "Should have flushed this reg already");
#ifndef MASKED_PSP_MEMORY
AdjustNativeRegAsPtr(nreg, false);
#endif
for (int i = 0; i < lanes; ++i)
mr[first + i].loc = type;
#ifdef MASKED_PSP_MEMORY
LoadNativeReg(nreg, first, lanes);
#endif
break;
case MIPSLoc::REG: