From c800918fd812b79679571cd6968bc461fbd0c467 Mon Sep 17 00:00:00 2001 From: degasus Date: Mon, 2 Jun 2014 09:52:48 +0200 Subject: [PATCH] RegCache64: remove unused functions --- .../Core/Core/PowerPC/Jit64/JitRegCache.cpp | 20 ------------------- Source/Core/Core/PowerPC/Jit64/JitRegCache.h | 15 -------------- 2 files changed, 35 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp index bb26a3e6b3..55376a46a2 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp +++ b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp @@ -13,12 +13,8 @@ RegCache::RegCache() : emit(nullptr) { memset(locks, 0, sizeof(locks)); memset(xlocks, 0, sizeof(xlocks)); - memset(saved_locks, 0, sizeof(saved_locks)); - memset(saved_xlocks, 0, sizeof(saved_xlocks)); memset(regs, 0, sizeof(regs)); memset(xregs, 0, sizeof(xregs)); - memset(saved_regs, 0, sizeof(saved_regs)); - memset(saved_xregs, 0, sizeof(saved_xregs)); } void RegCache::Start(PPCAnalyst::BlockRegStats &stats) @@ -117,22 +113,6 @@ X64Reg RegCache::GetFreeXReg() return (X64Reg) -1; } -void RegCache::SaveState() -{ - memcpy(saved_locks, locks, sizeof(locks)); - memcpy(saved_xlocks, xlocks, sizeof(xlocks)); - memcpy(saved_regs, regs, sizeof(regs)); - memcpy(saved_xregs, xregs, sizeof(xregs)); -} - -void RegCache::LoadState() -{ - memcpy(xlocks, saved_xlocks, sizeof(xlocks)); - memcpy(locks, saved_locks, sizeof(locks)); - memcpy(regs, saved_regs, sizeof(regs)); - memcpy(xregs, saved_xregs, sizeof(xregs)); -} - void RegCache::FlushR(X64Reg reg) { if (reg >= NUMXREGS) diff --git a/Source/Core/Core/PowerPC/Jit64/JitRegCache.h b/Source/Core/Core/PowerPC/Jit64/JitRegCache.h index fe2880d80b..15361b36e8 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitRegCache.h +++ b/Source/Core/Core/PowerPC/Jit64/JitRegCache.h @@ -8,13 +8,6 @@ using namespace Gen; -enum GrabMode -{ - M_READ = 1, - M_WRITE = 2, - M_READWRITE = 3, -}; - struct PPCCachedReg { OpArg location; @@ -41,17 +34,12 @@ class RegCache { private: bool locks[32]; - bool saved_locks[32]; - bool saved_xlocks[NUMXREGS]; protected: bool xlocks[NUMXREGS]; PPCCachedReg regs[32]; X64CachedReg xregs[NUMXREGS]; - PPCCachedReg saved_regs[32]; - X64CachedReg saved_xregs[NUMXREGS]; - virtual const int *GetAllocationOrder(int &count) = 0; XEmitter *emit; @@ -113,9 +101,6 @@ public: X64Reg GetFreeXReg(); - - void SaveState(); - void LoadState(); }; class GPRRegCache : public RegCache