mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix the crash bug (need to mark static non-pointer regs as depointerified on flush)
This commit is contained in:
parent
2a8560e522
commit
444fc0885c
1 changed files with 3 additions and 0 deletions
|
@ -645,6 +645,9 @@ void Arm64RegCache::FlushAll() {
|
|||
if (allocs[i].pointerified && !ar[allocs[i].ar].pointerified) {
|
||||
// Re-pointerify
|
||||
emit_->MOVK(EncodeRegTo64(allocs[i].ar), ((uint64_t)Memory::base) >> 32, SHIFT_32);
|
||||
} else {
|
||||
// If this register got pointerified on the way, mark it as not, so that after save/reload (like in an interpreter fallback), it won't be regarded as such, as it simply won't be.
|
||||
ar[allocs[i].ar].pointerified = false;
|
||||
}
|
||||
}
|
||||
// Sanity check
|
||||
|
|
Loading…
Add table
Reference in a new issue