mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 19:13:40 +01:00
Don't process threadsafe events from HLE.
Only from the runloop where blowing the jit cache is safe.
This commit is contained in:
1 parent
44e2a69258
commit
31ada1ea07
3 files changed
+14
-11
No files matched your search
+11
-9
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user