From 2e32f11f0384f037aa3af779fba896f04a09bc4a Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 9 Oct 2013 16:29:40 -0400 Subject: [PATCH] Remove "deprecated" and unused function Read_Opcode_JIT_LC. --- Source/Core/Core/Src/PowerPC/JitInterface.cpp | 40 ------------------- Source/Core/Core/Src/PowerPC/JitInterface.h | 1 - 2 files changed, 41 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/JitInterface.cpp b/Source/Core/Core/Src/PowerPC/JitInterface.cpp index 567473ef03..283637a842 100644 --- a/Source/Core/Core/Src/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/Src/PowerPC/JitInterface.cpp @@ -268,46 +268,6 @@ namespace JitInterface return inst; } - // The following function is deprecated in favour of FAST_ICACHE - u32 Read_Opcode_JIT_LC(const u32 _Address) - { - if ((_Address & ~JIT_ICACHE_MASK) != 0x80000000 && (_Address & ~JIT_ICACHE_MASK) != 0x00000000 && - (_Address & ~JIT_ICACHE_MASK) != 0x7e000000 && // TLB area - (_Address & ~JIT_ICACHEEX_MASK) != 0x90000000 && (_Address & ~JIT_ICACHEEX_MASK) != 0x10000000) - { - PanicAlertT("iCacheJIT: Reading Opcode from %x. Please report.", _Address); - ERROR_LOG(MEMMAP, "iCacheJIT: Reading Opcode from %x. Please report.", _Address); - return 0; - } - u8* iCache; - u32 addr; - if (_Address & JIT_ICACHE_VMEM_BIT) - { - iCache = jit->GetBlockCache()->iCacheVMEM; - addr = _Address & JIT_ICACHE_MASK; - } - else if (_Address & JIT_ICACHE_EXRAM_BIT) - { - iCache = jit->GetBlockCache()->iCacheEx; - addr = _Address & JIT_ICACHEEX_MASK; - } - else - { - iCache = jit->GetBlockCache()->iCache; - addr = _Address & JIT_ICACHE_MASK; - } - u32 inst = *(u32*)(iCache + addr); - if (inst == JIT_ICACHE_INVALID_WORD) - inst = Memory::ReadUnchecked_U32(_Address); - else - inst = Common::swap32(inst); - if ((inst & 0xfc000000) == 0) - { - inst = jit->GetBlockCache()->GetOriginalFirstOp(inst); - } - return inst; - } - // WARNING! No checks! // We assume that _Address is cached void Write_Opcode_JIT(const u32 _Address, const u32 _Value) diff --git a/Source/Core/Core/Src/PowerPC/JitInterface.h b/Source/Core/Core/Src/PowerPC/JitInterface.h index a0b7d62291..31d0a60c21 100644 --- a/Source/Core/Core/Src/PowerPC/JitInterface.h +++ b/Source/Core/Core/Src/PowerPC/JitInterface.h @@ -23,7 +23,6 @@ namespace JitInterface // used by JIT to read instructions u32 Read_Opcode_JIT(const u32 _Address); // used by JIT. uses iCacheJIT. Reads in the "Locked cache" mode - u32 Read_Opcode_JIT_LC(const u32 _Address); void Write_Opcode_JIT(const u32 _Address, const u32 _Value); // Clearing CodeCache