capstone/arch/XCore
Travis Finkenauer 292116bd0d 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
..
XCoreDisassembler.c Undefined shifts (#1154) 2018-06-02 16:49:36 +08:00
XCoreDisassembler.h port Windows driver support 2016-05-11 21:48:32 -07:00
XCoreGenAsmWriter.inc port Windows driver support 2016-05-11 21:48:32 -07:00
XCoreGenDisassemblerTables.inc 2015 2015-03-04 17:45:23 +08:00
XCoreGenInstrInfo.inc 2015 2015-03-04 17:45:23 +08:00
XCoreGenRegisterInfo.inc 2015 2015-03-04 17:45:23 +08:00
XCoreInstPrinter.c suppress MSVC code analysis (PREfast) warnings 2016-09-28 07:33:39 -07:00
XCoreInstPrinter.h 2015 2015-03-04 17:45:23 +08:00
XCoreMapping.c simplify ARCH_group_name() by using lookup table as suggested by @learn_more. also added the missing group name for GRP_PRIVILEGE 2015-04-27 12:13:34 +08:00
XCoreMapping.h 2015 2015-03-04 17:45:23 +08:00
XCoreMappingInsn.inc Fix indent issue 2015-03-11 00:40:14 +01:00
XCoreModule.c Declare global arch arrays with contents (next branch) (#1186) 2018-06-24 21:05:04 +08:00
XCoreModule.h Declare global arch arrays with contents (next branch) (#1186) 2018-06-24 21:05:04 +08:00