mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 06:11:00 +00:00
tcg/aarch64: Remove reloc_pc26_atomic
It is unused since b68686bd4bfeb70040b4099df993dfa0b4f37b03. Backports commit 90d6cb781130891f96eb54f8315e29fbd4e99a71 from qemu
This commit is contained in:
parent
091b4fa1ff
commit
cbe1065e83
|
@ -87,18 +87,6 @@ static inline void reloc_pc26(tcg_insn_unit *code_ptr, tcg_insn_unit *target)
|
|||
*code_ptr = deposit32(*code_ptr, 0, 26, offset);
|
||||
}
|
||||
|
||||
static inline void reloc_pc26_atomic(tcg_insn_unit *code_ptr,
|
||||
tcg_insn_unit *target)
|
||||
{
|
||||
ptrdiff_t offset = target - code_ptr;
|
||||
tcg_insn_unit insn;
|
||||
tcg_debug_assert(offset == sextract64(offset, 0, 26));
|
||||
/* read instruction, mask away previous PC_REL26 parameter contents,
|
||||
set the proper offset, then write back the instruction. */
|
||||
insn = atomic_read(code_ptr);
|
||||
atomic_set(code_ptr, deposit32(insn, 0, 26, offset));
|
||||
}
|
||||
|
||||
static inline void reloc_pc19(tcg_insn_unit *code_ptr, tcg_insn_unit *target)
|
||||
{
|
||||
ptrdiff_t offset = target - code_ptr;
|
||||
|
|
Loading…
Reference in a new issue