| 686 | } |
| 687 | |
| 688 | void Arm64JITCore::ClearCache() { |
| 689 | // NOTE: Holding on to the reference here is required to ensure validity of the WriteLock mutex |
| 690 | auto PrevCodeBuffer = CurrentCodeBuffer; |
| 691 | std::lock_guard lk(PrevCodeBuffer->LookupCache->WriteLock); |
| 692 | |
| 693 | auto CodeBuffer = GetEmptyCodeBuffer(); |
| 694 | SetBuffer(CodeBuffer->Ptr, CodeBuffer->Size); |
| 695 | EmitDetectionString(); |
| 696 | |
| 697 | ThreadState->LookupCache->ChangeGuestToHostMapping(*PrevCodeBuffer, *CurrentCodeBuffer->LookupCache); |
| 698 | } |
| 699 | |
| 700 | Arm64JITCore::~Arm64JITCore() {} |
| 701 |
no test coverage detected