Fixed memory corruption bug.

git-svn-id: http://svn.purei.org/purei/trunk@560 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2009-11-18 02:23:38 +00:00
parent a2efc9e864
commit 8273d783d1

View file

@ -50,6 +50,10 @@ int CMipsExecutor::Execute(int cycles)
{
//We need to partition the space and compile the blocks
PartitionFunction(address);
//Invalidate prevBlock because it might have been deleted by PartitionFunction
prevBlock = NULL;
block = FindBlockStartingAt(address);
if(block == NULL)
{