Skip to content

Commit

Permalink
Use general map ins_op type
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Oct 12, 2023
1 parent b7622dc commit 190a5b2
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions arch/TriCore/TriCoreMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,7 @@ const char *TriCore_group_name(csh handle, unsigned int id)
}

#ifndef CAPSTONE_DIET
/// A LLVM<->CS Mapping entry of an operand.
typedef struct insn_op {
uint8_t /* cs_op_type */ type; ///< Operand type (e.g.: reg, imm, mem)
uint8_t /* cs_ac_type */ access; ///< The access type (read, write)
uint8_t /* cs_data_type */
dtypes[10]; ///< List of op types. Terminated by CS_DATA_TYPE_LAST
} insn_op;

///< Operands of an instruction.
typedef struct {
insn_op ops[16]; ///< NULL terminated array of operands.
} insn_ops;

static const insn_ops insn_operands[] = {
static const map_insn_ops insn_operands[] = {
#include "TriCoreGenCSMappingInsnOp.inc"
};
#endif
Expand Down

0 comments on commit 190a5b2

Please sign in to comment.