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

Method Link

pcsx2/x86/BaseblockEx.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58#endif
59
60void BaseBlocks::Link(u32 pc, s32* jumpptr)
61{
62 BASEBLOCKEX* targetblock = Get(pc);
63 if (targetblock && targetblock->startpc == pc)
64 *jumpptr = (s32)(targetblock->fnptr - (sptr)(jumpptr + 1));
65 else
66 *jumpptr = (s32)(recompiler - (sptr)(jumpptr + 1));
67 links.insert(std::pair<u32, uptr>(pc, (uptr)jumpptr));
68}

Callers 5

psxSetBranchImmFunction · 0.45
iopRecRecompileFunction · 0.45
iBranchTestFunction · 0.45
recSkipTimeoutLoopFunction · 0.45
recRecompileFunction · 0.45

Calls 2

GetFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected