From 62a2cc3fb3d3bf4ec3a9fa87c5ce2634078393d6 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Mon, 4 Dec 2023 23:53:28 +0800 Subject: [PATCH] Fix drreg_reserve_reg_internal --- ext/drreg/drreg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/drreg/drreg.c b/ext/drreg/drreg.c index 1ed010e2a6e..2e5e3bad60a 100644 --- a/ext/drreg/drreg.c +++ b/ext/drreg/drreg.c @@ -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. */