Don't process threadsafe events from HLE.

Only from the runloop where blowing the jit cache is safe.
This commit is contained in:
Unknown W. Brackets committed 2013-02-22 00:40:36 -08:00
1 parent 44e2a69258
commit 31ada1ea07
3 files changed
+14 -11

No files matched your search

+11 -9
View File
@@ -422,12 +422,6 @@ void RemoveAllEvents(int event_type)
//This raise only the events required while the fifo is processing data
void ProcessFifoWaitEvents()
{
if (Common::AtomicLoadAcquire(hasTsEvents))
MoveEvents();
if (!first)
return;
while (first)
{
if (first->time <= globalTimer)
@@ -471,14 +465,12 @@ void MoveEvents()
}
}
void Advance()
void AdvanceQuick()
{
int cyclesExecuted = slicelength - currentMIPS->downcount;
globalTimer += cyclesExecuted;
currentMIPS->downcount = slicelength;
ProcessFifoWaitEvents();
if (!first)
{
// WARN_LOG(CPU, "WARNING - no events in queue. Setting currentMIPS->downcount to 10000");
@@ -486,6 +478,8 @@ void Advance()
}
else
{
ProcessFifoWaitEvents();
slicelength = (int)(first->time - globalTimer);
if (slicelength > MAX_SLICE_LENGTH)
slicelength = MAX_SLICE_LENGTH;
@@ -495,6 +489,14 @@ void Advance()
advanceCallback(cyclesExecuted);
}
void Advance()
{
if (Common::AtomicLoadAcquire(hasTsEvents))
MoveEvents();
AdvanceQuick();
}
void LogPendingEvents()
{
Event *ptr = first;