From 91b2fd3c4a73b799850d5c0b26223afa2867bf89 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 14 Nov 2015 10:29:03 +0100 Subject: [PATCH] ee: create a dedicated _DynGen_DispatcherEvent function for consistency of my doc --- pcsx2/x86/ix86-32/iR5900-32.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/ix86-32/iR5900-32.cpp b/pcsx2/x86/ix86-32/iR5900-32.cpp index 34417a2ace..ae797856b6 100644 --- a/pcsx2/x86/ix86-32/iR5900-32.cpp +++ b/pcsx2/x86/ix86-32/iR5900-32.cpp @@ -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();