mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-24 14:09:56 +00:00
ppc: add branch hint support to cs_ppc struct
This commit is contained in:
parent
f1d489b949
commit
af6ca7e20a
@ -62,7 +62,7 @@ typedef enum cs_opt_value {
|
||||
CS_OPT_SYNTAX_DEFAULT = 0, // Default asm syntax (CS_OPT_SYNTAX).
|
||||
CS_OPT_SYNTAX_INTEL, // X86 Intel asm syntax - default on X86 (CS_OPT_SYNTAX).
|
||||
CS_OPT_SYNTAX_ATT, // X86 ATT asm syntax (CS_OPT_SYNTAX)
|
||||
CS_OPT_SYNTAX_NOREGNAME, // Prints register name with only number - PPC arch (CS_OPT_SYNTAX)
|
||||
CS_OPT_SYNTAX_NOREGNAME, // PPC asm syntax: Prints register name with only number (CS_OPT_SYNTAX)
|
||||
} cs_opt_value;
|
||||
|
||||
|
||||
|
@ -40,6 +40,13 @@ typedef enum ppc_bc {
|
||||
PPC_BC_NU_PLUS = (3 << 5) | 7
|
||||
} ppc_bc;
|
||||
|
||||
//> PPC branch hint for some branch instructions
|
||||
typedef enum ppc_bh {
|
||||
PPC_BH_NO = 0, // no hint
|
||||
PPC_BH_PLUS, // PLUS hint
|
||||
PPC_BH_MINUS, // MINUS hint
|
||||
} ppc_bh;
|
||||
|
||||
//> Operand type for instruction's operands
|
||||
typedef enum ppc_op_type {
|
||||
PPC_OP_INVALID = 0, // Uninitialized.
|
||||
@ -70,7 +77,10 @@ typedef struct cs_ppc {
|
||||
// branch code for branch instructions
|
||||
ppc_bc bc;
|
||||
|
||||
// if this is True, then this 'dot' insn updates CR0
|
||||
// branch hint for branch instructions
|
||||
ppc_bh bh;
|
||||
|
||||
// if update_cr0 = True, then this 'dot' insn updates CR0
|
||||
bool update_cr0;
|
||||
|
||||
// Number of operands of this instruction,
|
||||
|
Loading…
Reference in New Issue
Block a user