From 3033d89853e237b09bcfbc7f1db238335eef4477 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 11 Aug 2022 22:52:54 +0300 Subject: [PATCH] drc: fix a silly mistake of overwriting a reg --- libpcsxcore/new_dynarec/new_dynarec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index b9e7c144..1c708566 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -3179,10 +3179,10 @@ static void do_invstub(int n) set_jump_target(stubs[n].addr, out); save_regs(reglist); - emit_readword(&inv_code_start, 2); - emit_readword(&inv_code_end, 3); if (addrr != 0 || ofs_start != 0) emit_addimm(addrr, ofs_start, 0); + emit_readword(&inv_code_start, 2); + emit_readword(&inv_code_end, 3); if (len != 0) emit_addimm(0, len + 4, (rightr = 1)); emit_cmp(0, 2); -- 2.39.5