mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
sh2 drc, wrap generated function ptrs if called from host
This commit is contained in:
parent
e1b916547d
commit
0512a22869
8 changed files with 43 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue