Skip to content

Commit

Permalink
Regcache: Fix lightrec_request_reg_in() not marking register as used
Browse files Browse the repository at this point in the history
This commit fixes 8c9b3b2.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Sep 30, 2019
1 parent 634aeaa commit 9c34c17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ u8 lightrec_request_reg_in(struct regcache *cache, jit_state_t *_jit,
u16 offset;

nreg = find_mapped_reg(cache, reg);
if (nreg)
if (nreg) {
nreg->used = true;
return lightrec_reg_to_lightning(cache, nreg);
}

nreg = lightning_reg_to_lightrec(cache, jit_reg);
lightrec_unload_nreg(cache, _jit, nreg, jit_reg);
Expand Down

0 comments on commit 9c34c17

Please sign in to comment.