sh2 drc, wrap generated function ptrs if called from host

This commit is contained in:
kub 2023-01-09 20:45:10 +00:00
parent e1b916547d
commit 0512a22869
8 changed files with 43 additions and 15 deletions

View file

@ -1217,7 +1217,7 @@ static inline void emith_pool_adjust(int tcache_offs, int move_offs)
EOP_C_BX(A_COND_AL, r); \
} while (0)
#define emith_call_ctx(offs) do { \
#define emith_abicall_ctx(offs) do { \
emith_move_r_r(LR, PC); \
emith_jump_ctx(offs); \
} while (0)
@ -1261,6 +1261,9 @@ static inline void emith_pool_adjust(int tcache_offs, int move_offs)
#define host_instructions_updated(base, end, force) \
do { if (force) emith_update_add(base, end); } while (0)
#define host_call(addr, args) \
addr
#define host_arg2reg(rd, arg) \
rd = arg