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
misc: accept a path without slash
[pcsx_rearmed.git]
/
deps
/
lightrec
/
lightrec-private.h
diff --git
a/deps/lightrec/lightrec-private.h
b/deps/lightrec/lightrec-private.h
index
12e953a
..
1f8e10b
100644
(file)
--- a/
deps/lightrec/lightrec-private.h
+++ b/
deps/lightrec/lightrec-private.h
@@
-156,6
+156,7
@@
struct lightrec_cstate {
struct lightrec_state {
struct lightrec_registers regs;
u32 temp_reg;
struct lightrec_state {
struct lightrec_registers regs;
u32 temp_reg;
+ u32 curr_pc;
u32 next_pc;
uintptr_t wrapper_regs[NUM_TEMPS];
u8 in_delay_slot_n;
u32 next_pc;
uintptr_t wrapper_regs[NUM_TEMPS];
u8 in_delay_slot_n;
@@
-360,4
+361,9
@@
get_delay_slot(const struct opcode *list, u16 i)
return op_flag_no_ds(list[i].flags) ? &list[i - 1] : &list[i + 1];
}
return op_flag_no_ds(list[i].flags) ? &list[i - 1] : &list[i + 1];
}
+static inline _Bool lightrec_store_next_pc(void)
+{
+ return NUM_REGS + NUM_TEMPS <= 4;
+}
+
#endif /* __LIGHTREC_PRIVATE_H__ */
#endif /* __LIGHTREC_PRIVATE_H__ */