MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / cpuSetNextEvent

Function cpuSetNextEvent

pcsx2/R5900.cpp:193–202  ·  view source on GitHub ↗

sets a branch test to occur some time from an arbitrary starting point.

Source from the content-addressed store, hash-verified

191
192// sets a branch test to occur some time from an arbitrary starting point.
193__fi void cpuSetNextEvent( u64 startCycle, s32 delta )
194{
195 // typecast the conditional to signed so that things don't blow up
196 // if startCycle is greater than our next branch cycle.
197
198 if( (int)(cpuRegs.nextEventCycle - startCycle) > delta )
199 {
200 cpuRegs.nextEventCycle = startCycle + delta;
201 }
202}
203
204// sets a branch to occur some time from the current cycle
205__fi void cpuSetNextEventDelta( s32 delta )

Callers 5

cpuSetNextEventDeltaFunction · 0.85
TESTINTFunction · 0.85
_cpuEventTest_SharedFunction · 0.85
_rcntSetFunction · 0.85
cpuRcntSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected