Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove more unused stuff.
  • Loading branch information
comex committed Oct 10, 2013
1 parent 8962b96 commit 78a4dbc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
14 changes: 0 additions & 14 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitCache.cpp
Expand Up @@ -47,12 +47,6 @@ using namespace Gen;

#define INVALID_EXIT 0xFFFFFFFF

bool JitBlock::ContainsAddress(u32 em_address)
{
// WARNING - THIS DOES NOT WORK WITH INLINING ENABLED.
return (em_address >= originalAddress && em_address < originalAddress + 4 * originalSize);
}

bool JitBaseBlockCache::IsFull() const
{
return GetNumBlocks() >= MAX_NUM_BLOCKS - 1;
Expand Down Expand Up @@ -189,7 +183,6 @@ bool JitBlock::ContainsAddress(u32 em_address)
b.exitPtrs[1] = 0;
b.linkStatus[0] = false;
b.linkStatus[1] = false;
b.blockNum = num_blocks;
num_blocks++; //commit the current block
return num_blocks - 1;
}
Expand Down Expand Up @@ -273,13 +266,6 @@ bool JitBlock::ContainsAddress(u32 em_address)
return inst;
}

void JitBaseBlockCache::GetBlockNumbersFromAddress(u32 em_address, std::vector<int> *block_numbers)
{
for (int i = 0; i < num_blocks; i++)
if (blocks[i].ContainsAddress(em_address))
block_numbers->push_back(i);
}

CompiledCode JitBaseBlockCache::GetCompiledCodeFromBlock(int block_num)
{
return (CompiledCode)blockCodePointers[block_num];
Expand Down
8 changes: 0 additions & 8 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitCache.h
Expand Up @@ -42,12 +42,10 @@ struct JitBlock
u32 codeSize;
u32 originalSize;
int runCount; // for profiling.
int blockNum;
int flags;

bool invalid;
bool linkStatus[2];
bool ContainsAddress(u32 em_address);

#ifdef _WIN32
// we don't really need to save start and stop
Expand Down Expand Up @@ -115,12 +113,6 @@ class JitBaseBlockCache
// Fast way to get a block. Only works on the first ppc instruction of a block.
int GetBlockNumberFromStartAddress(u32 em_address);

// slower, but can get numbers from within blocks, not just the first instruction.
// WARNING! WILL NOT WORK WITH INLINING ENABLED (not yet a feature but will be soon)
// Returns a list of block numbers - only one block can start at a particular address, but they CAN overlap.
// This one is slow so should only be used for one-shots from the debugger UI, not for anything during runtime.
void GetBlockNumbersFromAddress(u32 em_address, std::vector<int> *block_numbers);

u32 GetOriginalFirstOp(int block_num);
CompiledCode GetCompiledCodeFromBlock(int block_num);

Expand Down

0 comments on commit 78a4dbc

Please sign in to comment.