Skip to content

Commit

Permalink
Fix drreg_reserve_reg_internal
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed Dec 4, 2023
1 parent b5cdcb7 commit 62a2cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/drreg/drreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ drreg_reserve_reg_internal(void *drcontext, instrlist_t *ilist, instr_t *where,
if (pt->reg[idx].in_use)
continue;
if (reg ==
dr_get_stolen_reg() IF_ARM(|| reg == DR_REG_PC)
dr_get_stolen_reg() IF_ARM(|| reg == DR_REG_PC) IF_RISCV64(|| reg == DR_REG_TP)
/* Avoid xsp, even if it appears dead in things like OP_sysenter.
* On AArch64 use of SP is very restricted.
*/
Expand Down

0 comments on commit 62a2cc3

Please sign in to comment.