Nguyen Anh Quynh
6afd3aca6f
arm: fix mapping of ARM_SUBri (issue #1456 )
2019-04-11 00:18:25 +08:00
Nguyen Anh Quynh
25b6704978
merge next-arm64 to next
2019-04-10 17:46:07 +08:00
Nguyen Anh Quynh
3717f8388f
arm64 & arm: fix some warnings
2019-04-10 17:33:41 +08:00
Nguyen Anh Quynh
56238f478f
arm64: some bug fixes
2019-04-10 17:24:56 +08:00
Nguyen Anh Quynh
4784e0c8cf
arm64: fix crashes on some alias instructions
2019-04-10 16:07:40 +08:00
Nguyen Anh Quynh
aed601434e
arm64: cleanup
2019-04-10 14:22:23 +08:00
Nguyen Anh Quynh
9d292268a9
arm64: sync with LLVM 7.0.1
2019-04-10 14:17:08 +08:00
ChrisDenton
e07c1dd116
Update __init__.py ( #1453 )
...
Pass bytearrays by reference instead of copying to bytes.
2019-04-03 11:41:32 +08:00
Travis Finkenauer
d861c5fdeb
tms320c64x: remove extra indent ( #1426 )
2019-04-03 11:38:10 +08:00
Travis Finkenauer
7f7cda6429
Fix CS_ERR_X86_MASM doc typo ( #1455 )
2019-04-01 10:52:47 +08:00
Nguyen Anh Quynh
5a0c7d7e60
x86: CMPXCHG read AL/AX/EAX/RAX registers (issue #1454 )
2019-03-29 23:29:35 +08:00
Nguyen Anh Quynh
10f5ecc92f
Merge branch 'next' of github.com:aquynh/capstone into next
2019-03-24 12:17:20 +08:00
Nguyen Anh Quynh
90e0499971
arm64: set operand 0 in cmeq to IMM type (issue #1443 )
2019-03-24 12:17:03 +08:00
Wolfgang Schwotzer
1c81a806e9
msvc: Add more test projects. ( #1446 )
...
- Add test_bpf, test_mos65xx, test_riscv
tms320c64x and test_wasm.
2019-03-24 11:37:09 +08:00
Wolfgang Schwotzer
b627f2e81f
M680X: Remove warnings in msvc. ( #1447 )
...
- Also improved address range check.
- Added comments for maintainers.
2019-03-24 11:36:19 +08:00
Wolfgang Schwotzer
68d8073947
msvc: Bugfix for compile errors. ( #1442 )
...
- Add archs BPF, EVM, M680X, RISCV and WASM to
capstone_dll, capstone_static and cstool projects.
- Add getopt.c to cstool project.
- Add X86InstPrinterCommon.c to capstone_dll
and capstone_static project.
2019-03-23 11:44:37 +08:00
Wolfgang Schwotzer
2fb08ba31e
msvc: Add test projects. ( #1444 )
...
- Add test_basic, test_evm and test_m680x.
2019-03-23 11:43:25 +08:00
Wolfgang Schwotzer
5607c03df9
M680X: Use same output style as other archs ( #1439 )
...
- Lowercase hex numbers.
- Use comma + space between instruction parameters.
2019-03-22 11:07:15 +08:00
Yudi Zheng
850f52e721
Add test cases related to issue #1211 . ( #1438 )
2019-03-21 22:54:11 +08:00
Nguyen Anh Quynh
bc6387a7d5
Merge branch 'next' of github.com:aquynh/capstone into next
2019-03-21 16:46:29 +08:00
Nguyen Anh Quynh
2a71dc72bd
arm64: delete arch/AArch64/ARMMappingInsnOp.inc
2019-03-21 16:46:07 +08:00
Wolfgang Schwotzer
16ea9f0ed1
nit: Also use lowercase 'pcr' ( #1437 )
...
- This occurs for M6809 PC relative indexed addressing.
In this case the register is referenced as pcr (and not pc).
- This is a consequence of lowercase registers introduced in
cc8da331d3
- Example: lda $FD00,pcr (instead of lda $FD00,pcR)
2019-03-21 15:06:48 +08:00
Wolfgang Schwotzer
889ae45cf2
Fix coverity bug #1166 ( #1436 )
...
- Avoid address increment by pass-by-pointer parameter.
- Code cleanup: single responsibility where and who
calculates the instruction byte size.
2019-03-21 10:24:24 +08:00
z
f1e49f6ce6
add riscv cmake support & using static array contain temp string for riscv ( #1435 )
...
* add TableGen patch whcih fix riscv asmwrter.inc memory leak
* add riscv for cmake suporrt and change asmwriter using static array container
* add missing .inc files for riscv cmake support
2019-03-20 23:19:26 +08:00
z
6959bc5d46
add TableGen patch whcih fix riscv asmwrter.inc memory leak ( #1434 )
2019-03-20 13:28:41 +08:00
Wolfgang Schwotzer
48f3baf079
Fix #1412 : test_m680x crashes on Windows ( #1432 )
...
- Bug exists since adding M680X
- To save binary memory space the instruction decoding tables
are realized as struct bit-fields.
On MSVC when using enum values as a bit-field in a struct they are
interpreted as signed values => out-of-bounds array access.
- On gcc they are interpreted as unsigned values => no error.
- Fix: in the struct bit-field only use signed int and bool.
This conforms to C99.
2019-03-20 09:51:19 +08:00
Catena cyber
fb6179eca8
Fuzz QPX mode for PPC ( #1431 )
2019-03-19 09:07:30 +08:00
Travis Finkenauer
a313ec4254
Make install.sh more idomatic ( #1427 )
...
Use parameter expansion modifiers instead of manual tests.
2019-03-19 00:20:28 +08:00
Nguyen Anh Quynh
4b81f09a68
arm: brkdiv0 is invalid code. TODO: this is just a quick fix, later fix thisn in tablegen
2019-03-19 00:17:35 +08:00
Philippe Antoine
ed16aa859f
Adds info for ARM brkdiv0
2019-03-18 09:19:49 +01:00
blacktop
caa4a98e34
Update AARCH64 to ARMv8.1-4 (minus tablegen stuff) ( #1425 )
...
* updates for armv8.1-4
* Update AArch64Disassembler.c
* adding clang-format
* fix tabs
* fix indents
* fix tabs
* Update AArch64Disassembler.c
* Update AArch64Disassembler.c
* Update AArch64Disassembler.c
* Update AArch64Disassembler.c
* fix tables
* revert disass
* Update AArch64Disassembler.c
* Update AArch64Disassembler.c
* add AArch64InstPrinter new func stubs
* Update AArch64Mapping.c
* add baseinfo
* fix dates
* add AddressingModes.h
* Update AArch64Disassembler.c
* Update AArch64InstPrinter.c
2019-03-18 13:29:45 +08:00
hal-jones
e889a41e3a
AArch64: Fix register access flags for memory instructions ( #1423 )
...
* AArch64: fixes register access flags for loads
* AArch64: fixes register access flags for ORR
* AArch64: fixes register access flags for stores
2019-03-17 00:41:06 +08:00
hal-jones
fb11ad1a4a
AArch64: Fix register access flags for memory instructions ( #1423 )
...
* AArch64: fixes register access flags for loads
* AArch64: fixes register access flags for ORR
* AArch64: fixes register access flags for stores
2019-03-17 00:40:29 +08:00
Nguyen Anh Quynh
831ea98bdd
arm: remove ARMRegisterName.inc from CMakeLists.txt
2019-03-16 18:12:54 +08:00
Nguyen Anh Quynh
2a370baf99
arm: delete unused ARMRegisterName.inc
2019-03-16 18:05:30 +08:00
Nguyen Anh Quynh
c5e60bcb37
arm: use ARMMappingInsnName.inc for instruction names
2019-03-16 18:03:11 +08:00
Nguyen Anh Quynh
f09f9414cb
cstest: temporarily disable issue 913
2019-03-16 17:11:39 +08:00
Nguyen Anh Quynh
aa18aa2fa1
MC: fix heading of fpv8.c.cs to make fuzzer happy
2019-03-16 15:42:21 +08:00
Nguyen Anh Quynh
f56ed8d79d
arm: fix more MSVC warnings
2019-03-16 15:40:38 +08:00
Nguyen Anh Quynh
7299cc21e4
arm: fix more MSVC warnings
2019-03-16 15:32:14 +08:00
Nguyen Anh Quynh
c92ba6fa2c
arm: fix warnings reported by MSVC
2019-03-16 15:29:25 +08:00
Nguyen Anh Quynh
ba2c6a24da
bindings: update ARM const after the last ARM update
2019-03-16 15:22:45 +08:00
Nguyen Anh Quynh
124f91b303
arm: sync with llvm 7.0.1
2019-03-16 15:22:15 +08:00
Nguyen Anh Quynh
5fc297fe09
cstool: add armv8be & thumbv8be modes
2019-03-15 20:16:45 +08:00
Nguyen Anh Quynh
925b74ba01
cstool: arm v8, thumb v8
2019-03-15 13:01:04 +08:00
Nguyen Anh Quynh
e4ea0c9a94
cstool: add armv8 & thumbv8 to usage instruction
2019-03-15 12:57:31 +08:00
Catena cyber
7a947b3180
Fix memory leak in RISC V ( #1424 )
2019-03-15 12:31:17 +08:00
ceeac
e0340adcbb
Fix #1420 : Capstone 4 fails to build when targeting UWP ( #1421 )
2019-03-14 23:27:55 +08:00
Catena cyber
f6ccb88f49
Corpus generation is more robust ( #1419 )
2019-03-11 13:12:54 +08:00
Nguyen Anh Quynh
e77be5e7b5
put together all static architecture setups in cs.c
2019-03-09 18:24:57 +08:00