Nguyen Anh Quynh
590f23af54
arm: do not need to initialize local variable opcode in DecodeRegListOperand()
10 years ago
Nguyen Anh Quynh
26dfbc6677
fix indentation introduced by the latest merge. also move test_arm_regression.c into suite/arm/ and add Makefile for it
10 years ago
flyingsymbols
298d413bbc
* added a test file to suite for testing invalid and valid instruction sequences
...
* fixed and added a test for a thumb-2 invalid sequence that was incorrectly allowed before these changes (pop.w with sp argument included)
* fixed and added a test for a blx from thumb to ARM that had its immediate argument incorrect (misaligned)
* eliminated some warnings by explicitly casting so I could turn on
treat warnings as errors locally
General notes:
* probably worth turning on treat all warnings as errors in the msvc project files, had a subtle bug that resulted from a missing declaration causing differences in dll and static compilation modes
( code was working incorrectly in dll form because of missing declaration in arch/ARM/ARMMapping.h for new function ARM_blx_to_arm_mode. Something about the linking was confusing ld when making the dll, and the resulting offsets were wonky (e.g. the added ble test would show up as #0x1fc instead of #0x1fe like it should have )
* the invalid pop was being treated as a soft fail which then gets coerced
to a success because it is != MCDisassembler_Fail in Thumb_getInstruction
what are the semantics of a soft fail? Maybe we should be able to set up
whether or not we want a soft fail to be a real fail in the csh struct?
10 years ago
Nguyen Anh Quynh
2a461ed422
arm: zeroout a whole cs_arm struct in *getInstruction(). this makes sure operand of REG type has shift type = 0 by default
11 years ago
Nguyen Anh Quynh
0f648ea3e8
arm: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free to improve performance
11 years ago
Nguyen Anh Quynh
69582d71ae
initialize cs_insn.detail by properly zero-out right members for each arch
11 years ago
Nguyen Anh Quynh
8598a219f3
enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up
11 years ago
Nguyen Anh Quynh
bb0744df5d
do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC
11 years ago
Nguyen Anh Quynh
42706a39e2
indentation with tab
11 years ago
Axel 0vercl0k Souchet
779d4c75d9
first changes to get a successfully compiled version of capstone on VS2012
11 years ago
Nguyen Anh Quynh
958927eb56
clean up after the last removal of SubtargetFeature.h
11 years ago
Nguyen Anh Quynh
a5ffdc3a80
x86: properly handle LOCK/REP in the core, so remove buch of hacks
11 years ago
Giovanni Condello
7c78778cfc
Make capstone library compile with arm-none-eabi-gcc 4.8
11 years ago
Nguyen Anh Quynh
2cff6f61fc
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
11 years ago
Nguyen Anh Quynh
cbaf913d68
arm: fix a bug in getting data from input buffer of Thumb: bail out if not enough data
11 years ago
Nguyen Anh Quynh
aa078a1c4a
more fixes on C coding style
11 years ago
Alex Ionescu
b8a57fe285
Additional MSVC fixes, including to fixed tables (temporary so Quynh can see what to do).
11 years ago
Alex Ionescu
46018db884
Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done).
11 years ago
Nguyen Anh Quynh
9cc56a3322
arm: update core
11 years ago
Nguyen Anh Quynh
a768c9eb2c
arm: support big-endian. issue reported by Pancake
11 years ago
Nguyen Anh Quynh
04ac9c3725
arm,arm64,mips,x86: rename PPC_getFeatureBits() to getFeatureBits()
11 years ago
pancake
f0e4eed89d
Use const on all read-only buffers
11 years ago
Nguyen Anh Quynh
10fd59eacf
cleanup & remove dead code in arm, arm64 & mips. dead code was reported by Pancake
11 years ago
Nguyen Anh Quynh
462f291b9f
ARM: Fix bunch of issues
...
- Bugs
- start switching to more friendly asm: for number under 10, print without hex in front
11 years ago
Nguyen Anh Quynh
723fa80890
arm: some hardware features must be mutually exclusive
11 years ago
pancake
c04f873791
Use uint64_t instead of size_t for addresses
11 years ago
Nguyen Anh Quynh
7c7a8bc523
arm: move static variable ITBlock to cs_struct, so make arm code truly thread-safe
11 years ago
Nguyen Anh Quynh
5ef8b2a7de
arm: fix param of MCRegisterInfo_InitMCRegisterInfo() in ARM_init()
11 years ago
Nguyen Anh Quynh
173ed2b1cb
arm: upgrade core engine
11 years ago
Nguyen Anh Quynh
b42a657873
change cs_disasm() and cs_disasm_dyn() to be portable API. fix related code using these API
11 years ago
Nguyen Anh Quynh
26ee41aa67
initial import
11 years ago