From 8b50621184e91cdcdf9b7c4d43110cb5d06ce143 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Sat, 22 Jul 2023 13:56:45 -0500 Subject: [PATCH] Formatting --- Mapping.c | 3 ++- Mapping.h | 6 +++--- arch/ARM/ARMMapping.c | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Mapping.c b/Mapping.c index 60db35eec..23a21c0fd 100644 --- a/Mapping.c +++ b/Mapping.c @@ -179,7 +179,8 @@ void map_implicit_writes(MCInst *MI, const insn_map *imap) } /// Adds a given group to @MI->flat_insn. -void add_group(MCInst *MI, unsigned /* arch_group */ group) { +void add_group(MCInst *MI, unsigned /* arch_group */ group) +{ #ifndef CAPSTONE_DIET if (!MI->flat_insn->detail) return; diff --git a/Mapping.h b/Mapping.h index 4398d7926..7dd7bed04 100644 --- a/Mapping.h +++ b/Mapping.h @@ -21,9 +21,9 @@ typedef struct insn_map { unsigned short mapid; // The Capstone instruction id #ifndef CAPSTONE_DIET uint16_t regs_use[MAX_IMPL_R_REGS]; ///< list of implicit registers used by - ///< this instruction + ///< this instruction uint16_t regs_mod[MAX_IMPL_W_REGS]; ///< list of implicit registers modified - ///< by this instruction + ///< by this instruction unsigned char groups [MAX_NUM_GROUPS]; ///< list of group this instruction belong to bool branch; // branch instruction? @@ -47,7 +47,7 @@ typedef struct { uint8_t /* cs_ac_type */ access; ///< The access type (read, write) uint8_t /* cs_data_type */ dtypes[MAX_NO_DATA_TYPES]; ///< List of op types. Terminated by - ///< CS_DATA_TYPE_LAST + ///< CS_DATA_TYPE_LAST } mapping_op; #define MAX_NO_INSN_MAP_OPS 16 diff --git a/arch/ARM/ARMMapping.c b/arch/ARM/ARMMapping.c index 841a8b916..f2eb6a33d 100644 --- a/arch/ARM/ARMMapping.c +++ b/arch/ARM/ARMMapping.c @@ -1043,7 +1043,8 @@ static void add_cs_detail_general(MCInst *MI, arm_op_group op_group, SYSm); if (TheReg) { ARM_set_detail_op_sysreg( - MI, TheReg->sysreg.mclasssysreg, IsOutReg); + MI, TheReg->sysreg.mclasssysreg, + IsOutReg); return; }