Commit 241e7a98 authored by Jean-Philip Desjardins's avatar Jean-Philip Desjardins
Browse files

Remove useless check/optimisation.

parent 822342a1
...@@ -197,16 +197,11 @@ public: ...@@ -197,16 +197,11 @@ public:
int Execute(int cycles) int Execute(int cycles)
{ {
assert(TranslateFunction == m_context.m_pAddrTranslator); assert(TranslateFunction == m_context.m_pAddrTranslator);
auto block = m_emptyBlock.get();
m_context.m_State.cycleQuota = cycles; m_context.m_State.cycleQuota = cycles;
while(m_context.m_State.nHasException == 0) while(m_context.m_State.nHasException == 0)
{ {
uint32 address = TranslateFunction(&m_context, m_context.m_State.nPC); uint32 address = TranslateFunction(&m_context, m_context.m_State.nPC);
if(address != block->GetBeginAddress()) auto block = m_blockLookup.FindBlockAt(address);
{
block = FindBlockStartingAt(address);
}
#ifdef DEBUGGER_INCLUDED #ifdef DEBUGGER_INCLUDED
if(!m_breakpointsDisabledOnce && MustBreak()) break; if(!m_breakpointsDisabledOnce && MustBreak()) break;
m_breakpointsDisabledOnce = false; m_breakpointsDisabledOnce = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment