mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
arm64jit: Avoid flushing when mapping as pointer.
This commit is contained in:
parent
1b1e2c773b
commit
27116dcb86
1 changed files with 0 additions and 8 deletions
|
@ -434,14 +434,6 @@ Arm64Gen::ARM64Reg Arm64RegCache::MapRegAsPointer(MIPSGPReg reg) {
|
|||
mr[reg].loc = ML_ARMREG;
|
||||
ARM64Reg a = DecodeReg(mr[reg].reg);
|
||||
if (!jo_->enablePointerify) {
|
||||
// First, flush the value.
|
||||
if (ar[a].isDirty) {
|
||||
ARM64Reg storeReg = ARM64RegForFlush(ar[a].mipsReg);
|
||||
if (storeReg != INVALID_REG)
|
||||
emit_->STR(INDEX_UNSIGNED, storeReg, CTXREG, GetMipsRegOffset(ar[a].mipsReg));
|
||||
ar[a].isDirty = false;
|
||||
}
|
||||
|
||||
// Convert to a pointer by adding the base and clearing off the top bits.
|
||||
// If SP, we can probably avoid the top bit clear, let's play with that later.
|
||||
emit_->ADD(EncodeRegTo64(a), EncodeRegTo64(a), MEMBASEREG);
|
||||
|
|
Loading…
Add table
Reference in a new issue