Skip to content

Commit a89be09

Browse files
committed
Redo setlink fix.
Forgot why I had this in the first place...
1 parent 8723ade commit a89be09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/r3000a.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ typedef struct {
251251
#define _JumpTarget_ ((_Target_ * 4) + (_PC_ & 0xf0000000)) // Calculates the target during a jump instruction
252252
#define _BranchTarget_ ((int16_t)_Im_ * 4 + _PC_) // Calculates the target during a branch instruction
253253

254-
#define _SetLink(x) \
255-
PCSX::g_emulator.m_psxCpu->m_psxRegs.GPR.r[x] = _PC_ + 4 // Sets the return address in the link register
254+
#define _SetLink(x) delayedLoad(x, _PC_ + 4); // Sets the return address in the link register
256255

257256
class R3000Acpu {
258257
public:

0 commit comments

Comments
 (0)