Commit Graph

1850 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
2b4258997f arm64: avoiding duplicate call on AArch64_map_insn() in AArch64_printInst() 2013-12-11 21:57:54 +08:00
Nguyen Anh Quynh
66f6c2283e mips: fix NEGU alias instruction. bug reported by Pancake 2013-12-11 21:37:24 +08:00
Nguyen Anh Quynh
d051328a20 mips: no need to map BNEZ for alias insn name. bug reported by Pancake 2013-12-11 20:45:52 +08:00
Nguyen Anh Quynh
10fd59eacf cleanup & remove dead code in arm, arm64 & mips. dead code was reported by Pancake 2013-12-11 20:37:42 +08:00
Nguyen Anh Quynh
778ec163e5 mips: support N64 mode and simplify handling micro-mips 2013-12-11 18:25:56 +08:00
Nguyen Anh Quynh
2215895ebc mips: no need cs_struct.micro_mips, as we can get that from cs_struct.mode 2013-12-11 18:11:49 +08:00
Nguyen Anh Quynh
9d946516c3 arm64: fix AArch64_getFeatureBits() 2013-12-11 18:00:19 +08:00
Nguyen Anh Quynh
a1fbd4aada mips: fix Mips_getFeatureBits() 2013-12-11 17:48:48 +08:00
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
2013-12-11 17:35:27 +08:00
Nguyen Anh Quynh
ff771f6c84 arm: fix a typo in calling DecodeT2CPSInstruction() 2013-12-11 16:39:37 +08:00
Nguyen Anh Quynh
723fa80890 arm: some hardware features must be mutually exclusive 2013-12-10 12:13:05 +08:00
Nguyen Anh Quynh
37c7d77e76 x86: print mem pointer reference in lowercase 2013-12-10 00:33:37 +08:00
Nguyen Anh Quynh
a253c7a8e8 x86: map EFLAGS to string of 'flags', 'eflags' or 'rflags' depending on current CS_MODE 2013-12-09 10:26:18 +08:00
Nguyen Anh Quynh
f5d9892f41 x86: return lowercase string for instrution name 2013-12-08 23:36:06 +08:00
Nguyen Anh Quynh
87bb421d3b arm: return lowercase string for instrution name 2013-12-08 23:05:03 +08:00
Nguyen Anh Quynh
6677b994e7 arm: fix a wrong calculation on sign of .disp value in mem reference 2013-12-08 22:20:35 +08:00
Nguyen Anh Quynh
162409e730 mips: upgrade core engine 2013-12-08 20:17:28 +08:00
Nguyen Anh Quynh
731bf2a714 arm64: update core engine 2013-12-08 15:13:47 +08:00
Nguyen Anh Quynh
9f523d1699 mips: properly map alias instruction back to public id. this fixes the crash reported by Pancake 2013-12-06 13:49:23 +08:00
Nguyen Anh Quynh
b4ce38355a x86: map xstorerng alias instruction back to xstore. bug reported by Nicolas Ruff 2013-12-06 08:06:21 +08:00
Nguyen Anh Quynh
f9e3216568 x86: on mem reference, put scale after index register to be consistent with Intel style 2013-12-05 21:58:31 +08:00
Nguyen Anh Quynh
641b78375f x86: fix relative call. bug reported by Joxean Koret 2013-12-04 16:56:40 +08:00
Nguyen Anh Quynh
a5f0b1c3c3 mips: map register 9 to 'sp' rather than '29' 2013-12-03 20:13:48 +08:00
Nguyen Anh Quynh
6d552e5540 x86: fix bug in relative jump. reported by Joxean 2013-12-03 18:23:53 +08:00
Nguyen Anh Quynh
9cf170bcaa mips: correct the forgotten size_t address in the last API change 2013-12-03 15:17:41 +08:00
Nguyen Anh Quynh
7d5f96d3a7 merge Radare's pull request on API change on @address of cs_disasm*() 2013-12-03 11:53:42 +08:00
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
pancake
c04f873791 Use uint64_t instead of size_t for addresses 2013-12-03 02:51:46 +01: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