RegCache64: remove unused functions

This commit is contained in:
degasus 2014-06-02 09:52:48 +02:00
parent 4545fa589d
commit c800918fd8
2 changed files with 0 additions and 35 deletions

View File

@ -13,12 +13,8 @@ RegCache::RegCache() : emit(nullptr)
{ {
memset(locks, 0, sizeof(locks)); memset(locks, 0, sizeof(locks));
memset(xlocks, 0, sizeof(xlocks)); 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(regs, 0, sizeof(regs));
memset(xregs, 0, sizeof(xregs)); 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) void RegCache::Start(PPCAnalyst::BlockRegStats &stats)
@ -117,22 +113,6 @@ X64Reg RegCache::GetFreeXReg()
return (X64Reg) -1; 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) void RegCache::FlushR(X64Reg reg)
{ {
if (reg >= NUMXREGS) if (reg >= NUMXREGS)

View File

@ -8,13 +8,6 @@
using namespace Gen; using namespace Gen;
enum GrabMode
{
M_READ = 1,
M_WRITE = 2,
M_READWRITE = 3,
};
struct PPCCachedReg struct PPCCachedReg
{ {
OpArg location; OpArg location;
@ -41,17 +34,12 @@ class RegCache
{ {
private: private:
bool locks[32]; bool locks[32];
bool saved_locks[32];
bool saved_xlocks[NUMXREGS];
protected: protected:
bool xlocks[NUMXREGS]; bool xlocks[NUMXREGS];
PPCCachedReg regs[32]; PPCCachedReg regs[32];
X64CachedReg xregs[NUMXREGS]; X64CachedReg xregs[NUMXREGS];
PPCCachedReg saved_regs[32];
X64CachedReg saved_xregs[NUMXREGS];
virtual const int *GetAllocationOrder(int &count) = 0; virtual const int *GetAllocationOrder(int &count) = 0;
XEmitter *emit; XEmitter *emit;
@ -113,9 +101,6 @@ public:
X64Reg GetFreeXReg(); X64Reg GetFreeXReg();
void SaveState();
void LoadState();
}; };
class GPRRegCache : public RegCache class GPRRegCache : public RegCache