| 58 | #endif |
| 59 | |
| 60 | void 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 | } |
no test coverage detected