capstone/arch/Mips
Travis Finkenauer 65da43d0b1 Declare global arch arrays with contents (next branch) (#1186)
* Declare global arch arrays with contents (#1171)

This eliminates the need for archs_enable() and eliminates the racey
initialization.

This makes the architecture-specific init and option functions
non-static so that they may be called from a different file.

Cherry-picked 853a2870

* Add cs_arch_disallowed_mode_mask global

Cherry-pick 94bce437:
mips: CS_MODE_MIPS32R6 implies CS_MODE_32

Cherry-pick 8998a3a1:
ppc: fix endian check (#1029)
Fixes bug where endianness could not be set for ppc.

Remove `big_endian` field of `cs_struct`.
Added a helper macro `MODE_IS_BIG_ENDIAN()` to check if
`CS_MODE_BIG_ENDIAN` is set.

Refactored `cs_open()` check for valid mode out of arch-specific code
into arch-independent code. Also added a valid mode check to
`cs_option()`.  The checks use a new global array
`cs_arch_disallowed_mode_mask[]`.

* Make global arrays static

Make all_arch uint32_t to guarantee a certain number of bits (with
adequate room for growth).
2018-06-24 21:05:04 +08:00
..
MipsDisassembler.c Declare global arch arrays with contents (next branch) (#1186) 2018-06-24 21:05:04 +08:00
MipsDisassembler.h Mips64: fix the last cherry-pick on selecting getInstruction() 2017-10-09 09:26:41 +08:00
MipsGenAsmWriter.inc mips: fix bugs in the last update 2015-03-02 17:31:44 +08:00
MipsGenDisassemblerTables.inc mips: fix bugs in the last update 2015-03-02 17:31:44 +08:00
MipsGenInstrInfo.inc mips: update core 2015-03-02 15:12:42 +08:00
MipsGenRegisterInfo.inc core: remove unused Subregister indices for Sparc, PPC, SystemZ & Mips 2015-03-09 21:36:02 +08:00
MipsGenSubtargetInfo.inc mips: update core 2015-03-02 15:12:42 +08:00
MipsInstPrinter.c port Windows driver support 2016-05-11 21:48:32 -07:00
MipsInstPrinter.h 2015 2015-03-04 17:45:23 +08:00
MipsMapping.c Add name to relative branch group in supported architectures. (#982) 2017-08-01 16:49:43 +08:00
MipsMapping.h 2015 2015-03-04 17:45:23 +08:00
MipsMappingInsn.inc Relative branch group (#964) 2017-07-30 19:05:03 +08:00
MipsModule.c Declare global arch arrays with contents (next branch) (#1186) 2018-06-24 21:05:04 +08:00
MipsModule.h Declare global arch arrays with contents (next branch) (#1186) 2018-06-24 21:05:04 +08:00