notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drc: rework smc checks again
[pcsx_rearmed.git]
/
deps
/
lightrec
/
regcache.c
diff --git
a/deps/lightrec/regcache.c
b/deps/lightrec/regcache.c
index
c018870
..
791a9c5
100644
(file)
--- a/
deps/lightrec/regcache.c
+++ b/
deps/lightrec/regcache.c
@@
-493,6
+493,15
@@
void lightrec_clean_reg_if_loaded(struct regcache *cache, jit_state_t *_jit,
}
}
}
}
+void lightrec_discard_reg_if_loaded(struct regcache *cache, u8 reg)
+{
+ struct native_register *nreg;
+
+ nreg = find_mapped_reg(cache, reg, false);
+ if (nreg)
+ lightrec_discard_nreg(nreg);
+}
+
struct native_register * lightrec_regcache_enter_branch(struct regcache *cache)
{
struct native_register *backup;
struct native_register * lightrec_regcache_enter_branch(struct regcache *cache)
{
struct native_register *backup;