From 870f65c83b1aef6381bcbda88577fc48f06645ba Mon Sep 17 00:00:00 2001 From: Marios Asiminakis Date: Mon, 9 Dec 2024 15:26:49 +0200 Subject: [PATCH] Fixed formating --- core/arch/riscv64/emit_utils.c | 3 +-- core/arch/riscv64/mangle.c | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/core/arch/riscv64/emit_utils.c b/core/arch/riscv64/emit_utils.c index c8c34dd38e2..d3209457760 100644 --- a/core/arch/riscv64/emit_utils.c +++ b/core/arch/riscv64/emit_utils.c @@ -673,8 +673,7 @@ append_restore_xflags(dcontext_t *dcontext, instrlist_t *ilist, bool absolute) APP(ilist, RESTORE_FROM_DC(dcontext, DR_REG_A1, VTYPE_OFFSET)); APP(ilist, INSTR_CREATE_vsetvl(dcontext, opnd_create_reg(DR_REG_A0), - opnd_create_reg(DR_REG_A0), - opnd_create_reg(DR_REG_A1))); + opnd_create_reg(DR_REG_A0), opnd_create_reg(DR_REG_A1))); /* * End of FORTH copyrighted section */ diff --git a/core/arch/riscv64/mangle.c b/core/arch/riscv64/mangle.c index 63f6d6a952c..c9eb97fcbc3 100644 --- a/core/arch/riscv64/mangle.c +++ b/core/arch/riscv64/mangle.c @@ -352,7 +352,7 @@ insert_pop_all_registers(dcontext_t *dcontext, clean_call_info_t *cci, instrlist opnd_create_reg(DR_REG_SP), opnd_create_immed_int(DR_NUM_FPR_REGS * XSP_SZ, OPSZ_12b))); - current_offs -= 2*XSP_SZ; + current_offs -= 2 * XSP_SZ; /* Uses c.[f]ldsp for some reason beyond my comprehension, same below. */ if (proc_has_feature(FEATURE_VECTOR)) { @@ -366,12 +366,11 @@ insert_pop_all_registers(dcontext_t *dcontext, clean_call_info_t *cci, instrlist INSTR_CREATE_c_ldsp( dcontext, opnd_create_reg(DR_REG_A1), OPND_CREATE_MEM64(DR_REG_SP, - current_offs + XSP_SZ - DR_NUM_FPR_REGS * XSP_SZ))); + current_offs + XSP_SZ - DR_NUM_FPR_REGS * XSP_SZ))); /* vsetvl a0, a0, a1 */ PRE(ilist, instr, INSTR_CREATE_vsetvl(dcontext, opnd_create_reg(DR_REG_A0), - opnd_create_reg(DR_REG_A0), - opnd_create_reg(DR_REG_A1))); + opnd_create_reg(DR_REG_A0), opnd_create_reg(DR_REG_A1))); } /* Uses c.[f]ldsp to save space, same below. */