diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/coff/xcoff.h | 24 | ||||
-rw-r--r-- | include/opcode/riscv-opc.h | 5 | ||||
-rw-r--r-- | include/opcode/riscv.h | 1 |
3 files changed, 18 insertions, 12 deletions
diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h index 8688742..cae0029 100644 --- a/include/coff/xcoff.h +++ b/include/coff/xcoff.h @@ -204,30 +204,30 @@ struct internal_ldhdr /* The version number: 1 : 32 bit 2 : 64 bit */ - unsigned long l_version; + unsigned int l_version; /* The number of symbol table entries. */ - bfd_size_type l_nsyms; + size_t l_nsyms; /* The number of relocation table entries. */ - bfd_size_type l_nreloc; + size_t l_nreloc; /* The length of the import file string table. */ - bfd_size_type l_istlen; + size_t l_istlen; /* The number of import files. */ - bfd_size_type l_nimpid; + size_t l_nimpid; + + /* The length of the string table. */ + size_t l_stlen; /* The offset from the start of the .loader section to the first entry in the import file table. */ - bfd_size_type l_impoff; - - /* The length of the string table. */ - bfd_size_type l_stlen; + bfd_vma l_impoff; /* The offset from the start of the .loader section to the first entry in the string table. */ - bfd_size_type l_stoff; + bfd_vma l_stoff; /* The offset to start of the symbol table, only in XCOFF64 */ bfd_vma l_symoff; @@ -248,11 +248,11 @@ struct internal_ldsym struct { /* Zero if the symbol name is more than SYMNMLEN characters. */ - long _l_zeroes; + uint32_t _l_zeroes; /* The offset in the string table if the symbol name is more than SYMNMLEN characters. */ - long _l_offset; + uint32_t _l_offset; } _l_l; } diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h index 1f56317..fea4948 100644 --- a/include/opcode/riscv-opc.h +++ b/include/opcode/riscv-opc.h @@ -2311,6 +2311,9 @@ /* Smctr/Ssctr instruction. */ #define MATCH_SCTRCLR 0x10400073 #define MASK_SCTRCLR 0xffffffff +/* Smrnmi instruction. */ +#define MATCH_MNRET 0x70200073 +#define MASK_MNRET 0xffffffff /* Svinval instruction. */ #define MATCH_SINVAL_VMA 0x16000073 #define MASK_SINVAL_VMA 0xfe007fff @@ -4808,6 +4811,8 @@ DECLARE_INSN(cm_jt, MATCH_CM_JT, MASK_CM_JT) DECLARE_INSN(cm_jalt, MATCH_CM_JALT, MASK_CM_JALT) /* Smctr/Ssctr instruction. */ DECLARE_INSN(sctrclr, MATCH_SCTRCLR, MASK_SCTRCLR) +/* Smrnmi instruction */ +DECLARE_INSN(mnret, MATCH_MNRET, MASK_MNRET) /* Vendor-specific (T-Head) XTheadBa instructions. */ DECLARE_INSN(th_addsl, MATCH_TH_ADDSL, MASK_TH_ADDSL) /* Vendor-specific (T-Head) XTheadBb instructions. */ diff --git a/include/opcode/riscv.h b/include/opcode/riscv.h index 1f4bede..d76bcdb 100644 --- a/include/opcode/riscv.h +++ b/include/opcode/riscv.h @@ -526,6 +526,7 @@ enum riscv_insn_class INSN_CLASS_ZCMP, INSN_CLASS_ZCMT, INSN_CLASS_SMCTR_OR_SSCTR, + INSN_CLASS_SMRNMI, INSN_CLASS_SVINVAL, INSN_CLASS_ZICBOM, INSN_CLASS_ZICBOP, |