diff --git a/pcsx2/x86/BaseblockEx.h b/pcsx2/x86/BaseblockEx.h index 2a19ca088c..d61b78a84e 100644 --- a/pcsx2/x86/BaseblockEx.h +++ b/pcsx2/x86/BaseblockEx.h @@ -230,6 +230,12 @@ public: #define PC_GETBLOCK_(x, reclut) ((BASEBLOCK*)(reclut[((u32)(x)) >> 16] + (x)*(sizeof(BASEBLOCK)/4))) +/** + * Add a page to the recompiler lookup table + * + * Will associate `reclut[pagebase + pageidx]` with `mapbase[mappage << 14]` + * Will associate `hwlut[pagebase + pageidx]` with `pageidx << 16` + */ static void recLUT_SetPage(uptr reclut[0x10000], u32 hwlut[0x10000], BASEBLOCK *mapbase, uint pagebase, uint pageidx, uint mappage) {