Commit Graph

63 Commits

Author SHA1 Message Date
david942j
b227acc29c New architecture: BPF (#1388)
* Basic changes of new arch - BPF

* Define some constants

* defined some API methods

* Able to print MISC instruction

* Follow Linux coding style

* Ability to show ALU insn names

* decode return

* Add suite/MC/BPF

* decode jump

* decode store

* decode load

* print instruction done

* try to implement BPF_reg_access

* Implements explicit accessed registers and fix some tiny bugs

* Fix unhandled ja case

* Added BPF_REG_OFF do fix wrong display in jump class

* Great I'm able to decode cBPF with eyes

* Fix: misunderstood the 16-byte instruction's imm

* Add ldxdw

* Add extended-all.cs

* Implements cstest/bpf_getdetail.c

* Fix memory leak

* Add BPF to fuzz

* Implemented regs_read and regs_write

* Fix missing write-access on ALU's dst

* Updated cstool/, test_basic.c, test_detail.c, and test_iter.c

* Updated docs

* Fix type of cs_bpf#operands

* Implements python bindings

* Fix some bugs found by self code review

* Remove dummy tests

* remove typeof

* Address comments

* Fix MSVC's warnings and add test_bpf.py to bindings/python/Makefile

* Fix: call is not offset
2019-02-18 17:39:51 +08:00
Spike
55f242d498 Add webassembly arch (#1359)
* add wasm arch

* fix bug

* delete todo & add wasm into readme
2019-02-01 23:03:47 +08:00
Nguyen Anh Quynh
edfcb092c4 .gitignore 2019-01-22 15:38:25 +08:00
Nguyen Anh Quynh
8597ab29af add suite/capstone_get_setup.c to retrive Capstone build setup. see #1326 2019-01-09 13:49:03 +08:00
Nguyen Anh Quynh
d8d43be2b7 .gitignore 2018-12-19 11:16:31 +07:00
Nguyen Anh Quynh
76c1c3c4e9 merge next to master 2018-07-20 12:36:50 +08:00
Nguyen Anh Quynh
abd8c7506c .gitignore: add test binaries from next branch 2018-04-03 23:03:56 +08:00
Nguyen Anh Quynh
9c7a094b58 add Ethereum VM architecture 2018-03-31 17:29:22 +08:00
Wolfgang Schwotzer
e8d1f1d4d2 M680X: Target ready for pull request (#1034)
* Added new M680X target. Supports M6800/1/2/3/9, HD6301

* M680X: Reformat for coding guide lines. Set alphabetical order in HACK.TXT

* M680X: Prepare for python binding. Move cs_m680x, m680x_insn to m680x_info. Chec
> k cpu type, no default.

* M680X: Add python bindings. Added python tests.

* M680X: Added cpu types to usage message.

* cstool: Avoid segfault for invalid <arch+mode>.

* Make test_m680x.c/test_m680x.py output comparable (diff params: -bu). Keep xprint.py untouched.

* M680X: Update CMake/make for m680x support. Update .gitignore.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Make test_m680x.c/test_m680x.py output comparable (diff params: -bu).

* M680X: Add ocaml bindings and tests.

* M680X: Add java bindings and tests.

* M680X: Added tests for all indexed addressing modes. C/Python/Ocaml

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Used M680X_FIRST_OP_IN_MNEM in tests C/python/java/ocaml.

* M680X: Added access property to cs_m680x_op.

* M680X: Added operand size.

* M680X: Remove compiler warnings.

* M680X: Added READ/WRITE access property per operator.

* M680X: Make reg_inherent_hdlr independent of CPU type.

* M680X: Add HD6309 support + bug fixes

* M680X: Remove errors and warning.

* M680X: Add Bcc/LBcc to group BRAREL (relative branch).

* M680X: Add group JUMP to BVS/BVC/LBVS/LBVC. Remove BRAREL from BRN/LBRN.

* M680X: Remove LBRN from group BRAREL.

* M680X: Refactored cpu_type initialization for better readability.

* M680X: Add two operands for insn having two reg. in mnemonic. e.g. ABX.

* M680X: Remove typo in cstool.c

* M680X: Some format improvements in changed_regs.

* M680X: Remove insn id string list from tests (C/python/java/ocaml).

* M680X: SEXW, set access of reg. D to WRITE.

* M680X: Sort changed_regs in increasing m680x_insn order.

* M680X: Add M68HC11 support + Reduced from two to one INDEXED operand.

* M680X: cstool, also write '(in mnemonic)' for second reg. operand.

* M680X: Add BRN/LBRN to group JUMP and BRAREL.

* M680X: For Bcc/LBcc/BRSET/BRCLR set reg. CC to read access.

* M680X: Correctly print negative immediate values with option CS_OPT_UNSIGNED.

* M680X: Rename some instruction handlers.

* M680X: Add M68HC05 support.

* M680X: Dont print prefix '<' for direct addr. mode.

* M680X: Add M68HC08 support + resorted tables + bug fixes.

* M680X: Add Freescale HCS08 support.

* M680X: Changed group names, avoid spaces.

* M680X: Refactoring, rename addessing mode handlers.

* M680X: indexed addr. mode, changed pre/post inc-/decrement representation.

* M680X: Rename some M6809/HD6309 specific functions.

* M680X: Add CPU12 (68HC12/HCS12) support.

* M680X: Correctly display illegal instruction as FCB .

* M680X: bugfix: BRA/BRN/BSR/LBRA/LBRN/LBSR does not read CC reg.

* M680X: bugfix: Correctly check for sufficient code size for M6809 indexed addressing.

* M680X: Better support for changing insn id within handler for addessing mode.

* M680X: Remove warnings.

* M680X: In set_changed_regs_read_write_counts use own access_mode.

* M680X: Split cpu specific tables into separate *.inc files.

* M680X: Remove warnings.

* M680X: Removed address_mode. Addressing mode is available in operand.type

* M680X: Bugfix: BSET/BCLR/BRSET/BRCLR correct read/modify CC reg.

* M680X: Remove register TMP1. It is first visible in CPU12X.

* M680X: Performance improvement + bug fixes.

* M680X: Performance improvement, make cpu_tables const static.

* M680X: Simplify operand decoding by using two handlers.

* M680X: Replace M680X_OP_INDEX by M680X_OP_CONSTANT + bugfix in java/python/ocaml bindings.

* M680X: Format with astyle.

* M680X: Update documentation.

* M680X: Corrected author for m680x specific files.

* M680X: Make max. number of architectures single source.
2017-10-21 21:44:36 +08:00
Nguyen Anh Quynh
cfc4152305 binding: add Ocaml & Java const files for TMS320C64x 2017-04-17 21:24:06 +08:00
mrexodia
cdb7b699f5 ignore build directories 2016-12-16 18:43:32 +01:00
Nguyen Anh Quynh
1d05c71144 update .gitignore 2016-10-11 00:06:07 +08:00
Nguyen Anh Quynh
8f72ccbcb7 update .gitignore 2016-10-11 00:05:33 +08:00
Satoshi Tanda
3931106326 ignore MSVC project upgrade files
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-28 07:33:27 -07:00
Satoshi Tanda
5e2b01eb68 ignore MSVC project upgrade files
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 08:05:06 -07:00
Nguyen Anh Quynh
fae35cedac x86: properly handle SSE/AVX instructions 2016-07-15 20:37:19 +08:00
mrexodia
fa366067f4 ignore build directories for CMake 2016-06-23 16:53:07 +02:00
tandasat
d4ef430b33 port Windows driver support 2016-05-11 21:48:32 -07:00
Nguyen Anh Quynh
17d63ac318 update .gitignore 2016-05-03 23:05:22 +08:00
tandasat
c4c58decbd remove _WDK exclusion 2016-04-23 12:22:39 -07:00
tandasat
34530bb74c ignore VS2015 cache files 2016-04-09 22:35:52 -07:00
practicalswift
c055eb96d0 Add suite/regress/invalid_read_in_print_operand 2015-11-19 07:36:54 +01:00
Nguyen Anh Quynh
841325f7df update .gitignore 2015-10-03 11:33:26 +08:00
Nguyen Anh Quynh
caf8ddaae8 fix conflicts 2015-09-30 11:07:22 +08:00
Nguyen Anh Quynh
fee75fc3b9 fix an warning in test_iter_benchmark.c 2015-09-30 10:51:22 +08:00
Alex Chernetz
2aa4504c43 [Python binding] Add capstone.egg-info to .gitignore
This directory gets created if you install using pip in editable mode.
2015-06-19 23:22:57 -07:00
Alex Chernetz
e7c653fc23 [Python binding] Add capstone.egg-info to .gitignore
This directory gets created if you install using pip in editable mode.
2015-06-19 23:20:27 -07:00
Nguyen Anh Quynh
7bb3508ccb suite: move fuzz_hardness.c to suite/fuzz/ 2015-06-16 17:37:48 +08:00
Nguyen Anh Quynh
0dbf1b9636 suite: move fuzz_hardness.c to suite/fuzz/ 2015-06-16 17:32:03 +08:00
Nguyen Anh Quynh
3bdc7f8488 update .gitignore for tests/test_basic 2015-06-07 15:56:34 +08:00
Nguyen Anh Quynh
0b96545f66 new option CS_OPT_MNEMONIC to customize instruction mnemonic 2015-04-26 22:54:41 +08:00
Félix Cloutier
e5e874356b Renaming inttypes.h -> myinttypes.h 2015-04-08 09:31:27 +08:00
Félix Cloutier
28f97662ab Renaming inttypes.h -> myinttypes.h 2015-04-07 14:58:43 -04:00
Félix Cloutier
c488de3926 Merge branch 'next' of github.com:zneak/capstone into next
Conflicts were resolved by accepting every change from aquynh's repository.

Conflicts:
	bindings/java/capstone/Arm64_const.java
	bindings/java/capstone/Arm_const.java
	bindings/java/capstone/Mips_const.java
	bindings/java/capstone/Ppc_const.java
	bindings/java/capstone/Sparc_const.java
	bindings/java/capstone/Sysz_const.java
	bindings/java/capstone/X86_const.java
	bindings/java/capstone/Xcore_const.java
	bindings/ocaml/arm64_const.ml
	bindings/ocaml/arm_const.ml
	bindings/ocaml/mips_const.ml
	bindings/ocaml/ppc_const.ml
	bindings/ocaml/sparc_const.ml
	bindings/ocaml/sysz_const.ml
	bindings/ocaml/x86_const.ml
	bindings/ocaml/xcore_const.ml
	bindings/python/capstone/arm64_const.py
	bindings/python/capstone/arm_const.py
	bindings/python/capstone/mips_const.py
	bindings/python/capstone/ppc_const.py
	bindings/python/capstone/sparc_const.py
	bindings/python/capstone/sysz_const.py
	bindings/python/capstone/x86_const.py
	bindings/python/capstone/xcore_const.py
	include/capstone/arm.h
	include/capstone/arm64.h
	include/capstone/mips.h
	include/capstone/ppc.h
	include/capstone/sparc.h
	include/capstone/systemz.h
	include/capstone/x86.h
	include/capstone/xcore.h
	xcode/Capstone.xcodeproj/project.pbxproj
2015-03-03 23:07:46 -05:00
Nguyen Anh Quynh
d319c114db x86: more encodings for FXCH & FCOMP. also print LJUMP without * as prefix for Intel syntax. handle BOUND & FARCALL better 2014-12-26 16:49:10 +08:00
Félix Cloutier
114d0e40d8 Merge branch 'next' of git://github.com/aquynh/capstone into next 2014-10-15 02:56:28 -04:00
Nguyen Anh Quynh
d463bde653 Merge branch 'next' of https://github.com/aquynh/capstone into next 2014-10-13 07:34:34 +08:00
Nguyen Anh Quynh
a91c1994ea docs: add a link to online doc of cs_disasm_iter() 2014-10-13 07:27:16 +08:00
Jay Oster
b1119a39e5 Add tests/test_iter to .gitignore 2014-10-12 15:47:16 -07:00
Félix Cloutier
3a19a5407d Ignoring workspace files in Xcode projects. 2014-10-06 23:10:39 -04:00
Félix Cloutier
89005e0fca Changed .gitignore file to ignore xcuserdata dirs 2014-10-02 16:28:09 -04:00
Mr. eXoDia
66ca55f3c4 updated gitignore to ignore the ipch/ directory (MSVC specific) 2014-08-26 23:51:33 +08:00
Nguyen Anh Quynh
0efef5dd48 solve some conflicts when merging -next into -v3 2014-08-25 17:01:45 +08:00
Nguyen Anh Quynh
f178d69b3f update .gitignore for ocaml binaries 2014-08-19 23:11:04 +08:00
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 2014-07-31 18:24:51 +08:00
Nguyen Anh Quynh
a3676e31b5 update .gitignore for Ocaml binding 2014-06-26 22:10:41 +08:00
Nguyen Anh Quynh
553bb488d7 python: support XCore 2014-05-26 23:47:45 +08:00
Nguyen Anh Quynh
015849db81 update .gitignore for VS2010 2014-05-16 15:47:52 +08:00
Nguyen Anh Quynh
16d9c6cee7 update .gitignore 2014-05-14 21:54:09 +08:00
Giovanni Condello
314893c19d Ignore .d files and tests/test_skipdata 2014-05-10 16:05:49 +02:00