228 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
76c1c3c4e9 merge next to master 2018-07-20 12:36:50 +08:00
keenk
7bdf7dfefa Update TestX86.java (#1208)
* Fix java bindings for encoding

Fix java bindings broken with addition of encoding struct in #1194

* Add files via upload


Update TestX86.java for printing encoding struct and register access

* Add files via upload

Added conditions to only print encoding class info when needed.
Formatting.

* Add files via upload

Another space
2018-07-13 15:52:19 +07:00
keenk
8596aa5b99 Fix java bindings for encoding (#1202)
Fix java bindings broken with addition of encoding struct in #1194
2018-07-09 08:26:33 +07:00
Nguyen Anh Quynh
618676a229 Java: pump number of Mips operands to 10. see #1183 2018-06-19 09:36:38 +08:00
Nguyen Anh Quynh
aeb4128cab x86: support new instructions endbr64 & endbr32 2018-06-01 22:57:53 +08:00
Nguyen Anh Quynh
1da2ae94de EVM: add missing files 2018-03-31 17:32:22 +08:00
Nguyen Anh Quynh
1b166ebdf4 m68k: update bindings after #1068 2018-01-06 20:16:58 +08:00
Nguyen Anh Quynh
130545f040 bindings: update after #1064 2017-12-21 09:15:24 +08:00
Nguyen Anh Quynh
0acbc9e346 bindings: update after #1064 2017-12-21 09:14:05 +08:00
keenk
d6b8ad4265 Fix type of eflags (#1063)
changed eflags to long
2017-12-20 22:15: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
ff2f6831db binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +08:00
Francesco Tamagni
b8342f9b90 Add CS_MODE_MIPS2 to opt-in for COP3 instructions (#939)
* Add CS_MODE_MIPS2 to opt-in for COP3 instructions

* Fix indentation

* Get rid of `+`
2017-06-27 20:56:54 +08:00
Nguyen Anh Quynh
bd66403357 x86: fix FPU flags so const_generator.py can generate proper Python symbols 2017-05-31 21:42:02 +08:00
Nguyen Anh Quynh
f9fabed4d2 bindings: update FPU flags & FPU group for x86 after the last merge 2017-05-31 21:19:50 +08:00
Nguyen Anh Quynh
fcaf7d9a6f x86: add UD0 instruction 2017-05-07 11:17:23 +08:00
Nguyen Anh Quynh
cfc4152305 binding: add Ocaml & Java const files for TMS320C64x 2017-04-17 21:24:06 +08:00
Andreas Kirschbaum
f03176a1e2 Java: Support cs_strerror() and cs_regs_access() 2016-11-27 13:59:12 +01:00
Andreas Kirschbaum
18300bc0cf Java: Fix a bug where Arm.OpInfo.memBarrier and Arm.OpInfo.op is wrongly calculated 2016-11-27 10:13:57 +01:00
Andreas Kirschbaum
ae41e2beb5 Java: Fix a bug where Arm.Operand is wrongly calculated for the second and following operands 2016-11-26 13:15:53 +01:00
Nguyen Anh Quynh
c72ab6014f bindings: regenerate consts 2016-10-25 14:30:13 +08:00
Nguyen Anh Quynh
1e5a48535c add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:29:21 +08:00
Nguyen Anh Quynh
c7fab73847 bindings: update some consts 2016-10-22 23:32:13 +08:00
Nguyen Anh Quynh
eb110f66de Merge pull request #766 from akihikodaki/next_test
java: Rename Test class to TestBasic
2016-09-04 15:36:53 +08:00
Akihiko Odaki
e4c60c467f java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
mrexodia
fb2c843f66 changed fcompi to fcomip and fucompi to fucomip 2016-08-30 23:10:04 +02:00
Nguyen Anh Quynh
e93290962c arm64: add NEGS & NGCS alias instructions. this fixes issue #752 2016-08-23 14:01:17 +08:00
Nguyen Anh Quynh
fae35cedac x86: properly handle SSE/AVX instructions 2016-07-15 20:37:19 +08:00
Niels Boehm
06cc17d41c Fix typo in m68k constant for immediate operand. 2016-06-15 08:25:59 +02:00
Nguyen Anh Quynh
820d7d02c7 Merge pull request #669 from zachriggle/next-mips
Add MIPS_GRP_INT and MIPS_GRP_CALL
2016-05-14 09:36:49 +08:00
Nguyen Anh Quynh
27500352ae bindings: update Java & Ocaml after recent change on M68k interface 2016-05-12 21:47:48 +08:00
Zach Riggle
1b3f07ad12 Add MIPS_GRP_XXX aliases for generic types. 2016-05-03 07:30:31 -07:00
Nguyen Anh Quynh
6858c0f590 binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +08:00
Nguyen Anh Quynh
5c85a75d40 m68k: fix conflicts when merging with #625 2016-04-12 19:58:29 +07:00
Nguyen Anh Quynh
7fff673415 bindings: update after recent changes on some M68k enums 2016-04-12 18:47:19 +08:00
Nicolas PLANEL
a66b4b425c update generated bindings 2016-04-11 23:05:11 +10:00
Nguyen Anh Quynh
f99bf5a320 java: return empty instead of NULL for disasm(). patch by Keve Müller 2015-11-14 18:50:37 +08:00
Nguyen Anh Quynh
f752e9905a indentation 2015-11-14 18:40:11 +08:00
Keve Müller
0440c6708f Fix NPE when first instruction to disassemble is broken.
Return null instead.
2015-11-14 18:38:40 +08:00
Keve Müller
0a9894b0c7 return empty instead null 2015-11-14 09:56:20 +01:00
Keve Müller
d08e23edd8 Fix NPE when first instruction to disassemble is broken.
Return null instead.
2015-11-12 22:51:57 +01:00
Nguyen Anh Quynh
57bf77af66 bindings: add M68k_const.java & m68k_const.ml 2015-10-03 11:32:24 +08:00
learn_more
db5403d681 Missing definition 2015-08-02 20:13:29 +02:00
Nguyen Anh Quynh
fad344e870 java: rename Test.java to TestBasic.java 2015-06-03 22:18:26 +08:00
Gabriel Corona
8102aacfda Make PowerPC imm 64 bit (instad 32 bit) 2015-05-14 23:16:55 +02:00
Gabriel Corona
75f80b7242 Fix java compilation (xopCC is missing) 2015-05-14 23:15:31 +02:00
Nguyen Anh Quynh
af416e2ff8 bindings: update newly added ARM groups CALL & INT 2015-05-08 23:59:15 +08:00
Ammar Ben Khadra
98a0b20df6 Update README for Java Bindings
For better readability, OpenJDK installation has been separated from JNA installation.
2015-04-30 16:34:48 +08:00
Ammar Ben Khadra
b0515ca9c5 Update README
Installation instructions for libjna on Ubuntu has been added, that would save new comers (like me) sometime figuring it out :)
2015-04-30 16:34:43 +08:00
Ammar Ben Khadra
89e6ed46d6 Update README for Java Bindings
For better readability, OpenJDK installation has been separated from JNA installation.
2015-04-30 09:23:32 +02:00