mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
sh2 drc, fix bug in jump patching for arm64
This commit is contained in:
parent
e2a5b098e0
commit
f338a562e9
2 changed files with 4 additions and 2 deletions
|
@ -1106,8 +1106,9 @@ static void emith_ldst_offs(int sz, int rd, int rn, int o9, int ld, int mode)
|
|||
#define emith_jump_patch_size() 4
|
||||
|
||||
#define emith_jump_at(ptr, target) do { \
|
||||
u32 *ptr_ = (u32 *)ptr; \
|
||||
u32 disp_ = (u8 *)target - (u8 *)ptr; \
|
||||
EMIT_PTR(ptr, A64_B(disp_ & 0x0fffffff)); \
|
||||
EMIT_PTR(ptr_, A64_B(disp_ & 0x0fffffff)); \
|
||||
} while (0)
|
||||
#define emith_jump_at_size() 4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue