From 78c75e1a0b889b9ab584adc1e235c483c256b835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 21 Jul 2024 19:17:21 +0200 Subject: [PATCH] Delete duplicate function (now that we can easily check for compileToNative) --- Core/MIPS/IR/IRNativeCommon.cpp | 9 --------- Core/MIPS/IR/IRNativeCommon.h | 1 - 2 files changed, 10 deletions(-) diff --git a/Core/MIPS/IR/IRNativeCommon.cpp b/Core/MIPS/IR/IRNativeCommon.cpp index 6a860fc805..f4246db1c4 100644 --- a/Core/MIPS/IR/IRNativeCommon.cpp +++ b/Core/MIPS/IR/IRNativeCommon.cpp @@ -529,15 +529,6 @@ void IRNativeJit::ClearCache() { backend_->ClearAllBlocks(); } -void IRNativeJit::InvalidateCacheAt(u32 em_address, int length) { - std::vector numbers = blocks_.FindInvalidatedBlockNumbers(em_address, length); - for (int block_num : numbers) { - auto block = blocks_.GetBlock(block_num); - backend_->InvalidateBlock(&blocks_, block_num); - block->Destroy(block->GetNativeOffset()); - } -} - bool IRNativeJit::DescribeCodePtr(const u8 *ptr, std::string &name) { if (ptr != nullptr && backend_->DescribeCodePtr(ptr, name)) return true; diff --git a/Core/MIPS/IR/IRNativeCommon.h b/Core/MIPS/IR/IRNativeCommon.h index 53e17178c1..c36754ae51 100644 --- a/Core/MIPS/IR/IRNativeCommon.h +++ b/Core/MIPS/IR/IRNativeCommon.h @@ -185,7 +185,6 @@ public: void RunLoopUntil(u64 globalticks) override; void ClearCache() override; - void InvalidateCacheAt(u32 em_address, int length = 4) override; bool DescribeCodePtr(const u8 *ptr, std::string &name) override; bool CodeInRange(const u8 *ptr) const override;