ee: create a dedicated _DynGen_DispatcherEvent function

for consistency of my doc
This commit is contained in:
Gregory Hainaut 2015-11-14 10:29:03 +01:00
parent 837b62d5e8
commit 91b2fd3c4a
1 changed files with 10 additions and 2 deletions

View File

@ -473,6 +473,15 @@ static DynGenFunc* _DynGen_DispatcherReg()
return (DynGenFunc*)retval;
}
static DynGenFunc* _DynGen_DispatcherEvent()
{
u8* retval = xGetPtr();
xCALL( recEventTest );
return (DynGenFunc*)retval;
}
static DynGenFunc* _DynGen_EnterRecompiledCode()
{
pxAssertDev( DispatcherReg != NULL, "Dynamically generated dispatchers are required prior to generating EnterRecompiledCode!" );
@ -566,8 +575,7 @@ static void _DynGen_Dispatchers()
// Place the EventTest and DispatcherReg stuff at the top, because they get called the
// most and stand to benefit from strong alignment and direct referencing.
DispatcherEvent = (DynGenFunc*)xGetPtr();
xCALL( recEventTest );
DispatcherEvent = _DynGen_DispatcherEvent();
DispatcherReg = _DynGen_DispatcherReg();
JITCompile = _DynGen_JITCompile();