mirror of
https://github.com/libretro/Play-.git
synced 2025-02-01 22:25:32 +00:00
Cleanup.
This commit is contained in:
parent
41bb993cb7
commit
a3d53f6a14
@ -7,10 +7,6 @@ static bool IsInsideRange(uint32 address, uint32 start, uint32 end)
|
||||
|
||||
CMipsExecutor::CMipsExecutor(CMIPS& context, uint32 maxAddress)
|
||||
: m_context(context)
|
||||
, m_subTableCount(0)
|
||||
#ifdef DEBUGGER_INCLUDED
|
||||
, m_breakpointsDisabledOnce(false)
|
||||
#endif
|
||||
{
|
||||
if(maxAddress < 0x10000)
|
||||
{
|
||||
@ -112,7 +108,7 @@ int CMipsExecutor::Execute(int cycles)
|
||||
if(!block || address != block->GetBeginAddress())
|
||||
{
|
||||
block = FindBlockStartingAt(address);
|
||||
if(block == NULL)
|
||||
if(!block)
|
||||
{
|
||||
//We need to partition the space and compile the blocks
|
||||
PartitionFunction(address);
|
||||
@ -229,7 +225,7 @@ void CMipsExecutor::CreateBlock(uint32 start, uint32 end)
|
||||
}
|
||||
assert(FindBlockAt(end) == NULL);
|
||||
{
|
||||
BasicBlockPtr block = BlockFactory(m_context, start, end);
|
||||
auto block = BlockFactory(m_context, start, end);
|
||||
for(uint32 address = block->GetBeginAddress(); address <= block->GetEndAddress(); address += 4)
|
||||
{
|
||||
uint32 hiAddress = address >> 16;
|
||||
|
@ -36,11 +36,11 @@ protected:
|
||||
BlockList m_blocks;
|
||||
CMIPS& m_context;
|
||||
|
||||
CBasicBlock*** m_blockTable;
|
||||
uint32 m_subTableCount;
|
||||
CBasicBlock*** m_blockTable = nullptr;
|
||||
uint32 m_subTableCount = 0;
|
||||
|
||||
#ifdef DEBUGGER_INCLUDED
|
||||
bool m_breakpointsDisabledOnce;
|
||||
bool m_breakpointsDisabledOnce = false;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user