From 228c14e10e9a8fae0ead8adf30daad2cdd8655b9 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Sat, 16 Aug 2025 17:37:09 +0200 Subject: [PATCH] git subrepo pull --force deps/lightrec subrepo: subdir: "deps/lightrec" merged: "a173cf409e1" upstream: origin: "https://github.com/pcercuei/lightrec.git" branch: "master" commit: "a173cf409e1" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "110b9eb" --- deps/lightrec/.gitrepo | 4 ++-- deps/lightrec/emitter.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deps/lightrec/.gitrepo b/deps/lightrec/.gitrepo index 654cb042..9fdfabbf 100644 --- a/deps/lightrec/.gitrepo +++ b/deps/lightrec/.gitrepo @@ -6,7 +6,7 @@ [subrepo] remote = https://github.com/pcercuei/lightrec.git branch = master - commit = 3ebca4b2940c0f5ed73068cd690cca15e50ca73a - parent = 6365a756c02d25c76bf90c78e42316b46f876c49 + commit = a173cf409e11fbbdd4801aacc683a3d7592f499c + parent = 8da7189ef558eacaa80a37d542ade67b6717c812 method = merge cmdver = 0.4.6 diff --git a/deps/lightrec/emitter.c b/deps/lightrec/emitter.c index 1da3b70e..4989febd 100644 --- a/deps/lightrec/emitter.c +++ b/deps/lightrec/emitter.c @@ -1229,6 +1229,10 @@ static void rec_io(struct lightrec_cstate *state, lightrec_clean_reg_if_loaded(reg_cache, _jit, reg, false); if (load_delay) { + /* lightrec_rw() might read the actual target register (in case + * of LWL/LWR), so we need to keep it in sync. */ + lightrec_clean_reg_if_loaded(reg_cache, _jit, c.i.rt, false); + /* Clear state->in_delay_slot_n. This notifies the lightrec_rw * wrapper that it should write the REG_TEMP register instead of * the actual output register of the opcode. */ -- 2.47.2