Delete duplicate function (now that we can easily check for compileToNative)

This commit is contained in:
Henrik Rydgård 2024-07-21 19:17:21 +02:00
parent 9d36a08ec4
commit 78c75e1a0b
2 changed files with 0 additions and 10 deletions

View File

@ -529,15 +529,6 @@ void IRNativeJit::ClearCache() {
backend_->ClearAllBlocks(); backend_->ClearAllBlocks();
} }
void IRNativeJit::InvalidateCacheAt(u32 em_address, int length) {
std::vector<int> 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) { bool IRNativeJit::DescribeCodePtr(const u8 *ptr, std::string &name) {
if (ptr != nullptr && backend_->DescribeCodePtr(ptr, name)) if (ptr != nullptr && backend_->DescribeCodePtr(ptr, name))
return true; return true;

View File

@ -185,7 +185,6 @@ public:
void RunLoopUntil(u64 globalticks) override; void RunLoopUntil(u64 globalticks) override;
void ClearCache() override; void ClearCache() override;
void InvalidateCacheAt(u32 em_address, int length = 4) override;
bool DescribeCodePtr(const u8 *ptr, std::string &name) override; bool DescribeCodePtr(const u8 *ptr, std::string &name) override;
bool CodeInRange(const u8 *ptr) const override; bool CodeInRange(const u8 *ptr) const override;