mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #10844 from unknownbrackets/arm64jit
arm64jit: Fix a case of R() on unmapped
This commit is contained in:
commit
9d2a8a7647
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ namespace MIPSComp {
|
|||
|
||||
if (!load && gpr.IsImm(rt) && gpr.TryMapTempImm(rt) != INVALID_REG) {
|
||||
// We're storing an immediate value, let's see if we can optimize rt.
|
||||
if (!gpr.IsImm(rs) || offset == 0) {
|
||||
if (!gpr.IsImm(rs) || !Memory::IsValidAddress(iaddr) || offset == 0) {
|
||||
// In this case, we're always going to need rs mapped, which may flush the temp imm.
|
||||
// We handle that in the cases below since targetReg is INVALID_REG.
|
||||
gpr.MapIn(rs);
|
||||
|
|
Loading…
Add table
Reference in a new issue