diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/ppc.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index b3fd56b..3b7c66d 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2018-12-06 Alan Modra <amodra@gmail.com> + + * opcode/ppc.h (E_OPCODE_MASK, E_LI_MASK, E_LI_INSN): Define. + 2018-12-06 Andrew Burgess <andrew.burgess@embecosm.com> * dis-asm.h (riscv_symbol_is_valid): Declare. diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index 2b7f51e..c7262f1 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -476,6 +476,8 @@ ppc_optional_operand_value (const struct powerpc_operand *operand, } /* PowerPC VLE insns. */ +#define E_OPCODE_MASK 0xfc00f800 + /* Form I16L, uses 16A relocs. */ #define E_OR2I_INSN 0x7000C000 #define E_AND2I_DOT_INSN 0x7000C800 @@ -492,6 +494,9 @@ ppc_optional_operand_value (const struct powerpc_operand *operand, #define E_CMPH16I_INSN 0x7000B000 #define E_CMPHL16I_INSN 0x7000B800 +#define E_LI_INSN 0x70000000 +#define E_LI_MASK 0xfc008000 + #ifdef __cplusplus } #endif |