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

ClearActiveBlocks is not a thing anymore.

Was broken due to caching mechanism used by VuExecutor.
parent 7f4c3fd7
......@@ -218,11 +218,6 @@ public:
}
virtual void Reset()
{
ClearActiveBlocks();
}
void ClearActiveBlocks()
{
m_blockLookup.Clear();
m_blocks.clear();
......@@ -409,7 +404,7 @@ protected:
assert(scanEnd > scanStart);
std::set<CBasicBlock*> clearedBlocks;
for(uint32 address = scanStart; address <= scanEnd; address += 4)
for(uint32 address = scanStart; address < scanEnd; address += 4)
{
auto block = m_blockLookup.FindBlockAt(address);
if(block->IsEmpty()) continue;
......
......@@ -171,7 +171,7 @@ void CVpu::ExecuteMicroProgram(uint32 nAddress)
void CVpu::InvalidateMicroProgram()
{
m_executor.ClearActiveBlocks();
m_executor.ClearActiveBlocksInRange(0, (m_number == 0) ? PS2::MICROMEM0SIZE : PS2::MICROMEM1SIZE);
}
void CVpu::ProcessXgKick(uint32 address)
......
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