Commit Graph

23 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
f35e2ad35c add @regs_read_count, @regs_write_count, @groups_count to @cs_insn. bump API to 1.4 2013-12-03 11:10:26 +08:00
Nguyen Anh Quynh
9c950c15d6 x86: fix all the shift rotate insns with 1 as immediate: shl, shr, sar, ror, rol. thus, removed the hack on this insns. 2013-12-02 23:20:07 +08:00
Nguyen Anh Quynh
8fcec67893 x86: do not sign-extend immediate. this fixes the issues reported by LongLD 2013-12-02 22:03:30 +08:00
Nguyen Anh Quynh
23bc1f356a fix some potential format string bugs in arm64, arm & mips 2013-12-02 16:24:56 +08:00
Nguyen Anh Quynh
b9b3d29ff5 x86: print segment register in some insns with memory references. This fixes the bug reported by Edgar & Attila 2013-12-02 16:21:55 +08:00
Nguyen Anh Quynh
ec0ed8ee94 semantics: add insn group JUMP, so now we can check if this insn is branching 2013-12-02 13:55:38 +08:00
Nguyen Anh Quynh
7c7a8bc523 arm: move static variable ITBlock to cs_struct, so make arm code truly thread-safe 2013-12-02 13:16:44 +08:00
Nguyen Anh Quynh
f1c2eee091 x86: clang still complains on unused enum type. this shuts it up 2013-12-02 12:29:07 +08:00
Nguyen Anh Quynh
0e3defb6f8 arm64: remove asprintf.c and use static buffer instead for SysRegMapper_toString(). this fixes the bug on MSR insn reported by Patroklos Argyroudis 2013-12-02 10:30:01 +08:00
Nguyen Anh Quynh
5ef8b2a7de arm: fix param of MCRegisterInfo_InitMCRegisterInfo() in ARM_init() 2013-12-01 23:13:30 +08:00
Nguyen Anh Quynh
257dfb6571 arm: fix wrong calculation on update_flags due to dropped support for cs_reg_write() with 0 as handle 2013-12-01 23:12:34 +08:00
Nguyen Anh Quynh
173ed2b1cb arm: upgrade core engine 2013-12-01 22:19:27 +08:00
Nguyen Anh Quynh
36d143b6d0 x86: update core engine 2013-12-01 00:05:22 +08:00
Nguyen Anh Quynh
ad61c49288 arm64: handle decomposer properly for alias insn 2013-11-30 16:23:31 +08:00
Nguyen Anh Quynh
e1611f0189 arm64: fix wrong calculation of arm64.update_flags with a tricky way of using cs_reg_write() 2013-11-30 12:37:26 +08:00
Nguyen Anh Quynh
6b9b6647c1 arm64: support more alias insn 2013-11-30 12:28:56 +08:00
Nguyen Anh Quynh
6b7abe3c81 arm64: handle alias insn in a better way, and add support for MNEG. bug reported by Patroklos Argyroudis 2013-11-30 00:54:24 +08:00
Nguyen Anh Quynh
b42a657873 change cs_disasm() and cs_disasm_dyn() to be portable API. fix related code using these API 2013-11-29 17:40:07 +08:00
Nguyen Anh Quynh
0b6f1bd544 x86: fix SHR, SHL, SAR insn when second op is 1 (Intel syntax). reported by Edgar Barbosa 2013-11-29 11:06:46 +08:00
Nguyen Anh Quynh
d7dbccd05e Removed a couple of inoffensive compiler warnings. By Daniel Godas-Lopez 2013-11-28 23:15:34 +08:00
Nguyen Anh Quynh
741a9de722 arm: print immediate as 32bit rather than 64bit number. fix the bug reported by LongLD 2013-11-28 16:02:35 +08:00
Nguyen Anh Quynh
f10be9bb9d x86: fix an overflow bug reported by Pancake 2013-11-28 15:04:43 +08:00
Nguyen Anh Quynh
26ee41aa67 initial import 2013-11-27 12:11:31 +08:00