Nguyen Anh Quynh
|
215e76b223
|
ppc: use MCInst_insert0() instead of MCInst_insert() to avoid malloc/free
|
2014-06-16 14:47:43 +08:00 |
Nguyen Anh Quynh
|
7f945d3655
|
ppc: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free
|
2014-06-16 12:34:02 +08:00 |
Nguyen Anh Quynh
|
7f15f67544
|
ppc: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible
|
2014-06-16 12:11:50 +08:00 |
Nguyen Anh Quynh
|
69582d71ae
|
initialize cs_insn.detail by properly zero-out right members for each arch
|
2014-06-09 17:50:01 +07:00 |
Nguyen Anh Quynh
|
29fd0f6405
|
fix all the code in other non-X86 archs after the change made by commit 5329a6ffd4
|
2014-06-09 08:00:18 +07:00 |
Nguyen Anh Quynh
|
2c20a1b5a3
|
ppc: wrong comparison in printOperand(). bug found by Coverity
|
2014-05-30 17:00:20 +08:00 |
Nguyen Anh Quynh
|
f721e3124d
|
Disassembler -> Disassembly
|
2014-05-27 10:45:58 +08:00 |
Nguyen Anh Quynh
|
04f2ec6d0f
|
cleanup redundant headers included
|
2014-05-27 10:39:04 +08:00 |
Nguyen Anh Quynh
|
6456481508
|
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
|
2014-05-19 16:46:31 +08:00 |
Nguyen Anh Quynh
|
8598a219f3
|
enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up
|
2014-05-14 11:26:41 +08:00 |
Nguyen Anh Quynh
|
043702e9ef
|
more fixes for warnings reported by MSVC
|
2014-05-12 16:17:00 +08:00 |
Nguyen Anh Quynh
|
bb0744df5d
|
do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC
|
2014-05-12 13:41:49 +08:00 |
Nguyen Anh Quynh
|
42706a39e2
|
indentation with tab
|
2014-05-09 07:33:35 +08:00 |
Axel 0vercl0k Souchet
|
779d4c75d9
|
first changes to get a successfully compiled version of capstone on VS2012
|
2014-05-08 23:44:49 +01:00 |
Nguyen Anh Quynh
|
958927eb56
|
clean up after the last removal of SubtargetFeature.h
|
2014-05-08 22:59:28 +08:00 |
Nguyen Anh Quynh
|
a5ffdc3a80
|
x86: properly handle LOCK/REP in the core, so remove buch of hacks
|
2014-05-07 08:25:24 +08:00 |
Nguyen Anh Quynh
|
2cff6f61fc
|
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
|
2014-04-28 11:19:44 +08:00 |
Nguyen Anh Quynh
|
2eb37ee02a
|
ppc: disable some redundant functions when Diet option is enable
|
2014-03-28 10:38:55 +08:00 |
Nguyen Anh Quynh
|
f6c7cbc972
|
core: fix some warnings
|
2014-03-12 12:50:54 +08:00 |
Nguyen Anh Quynh
|
1514d5ca0c
|
ppc: cleaning up
|
2014-03-06 14:04:45 +08:00 |
Nguyen Anh Quynh
|
1c68ab9293
|
cleaning up unused code
|
2014-03-06 12:41:28 +08:00 |
Nguyen Anh Quynh
|
ca9a7ab30c
|
ppc: fix a segfault in Diet mode
|
2014-03-04 14:59:54 +08:00 |
Nguyen Anh Quynh
|
fc83a439e5
|
add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40%
|
2014-02-22 23:26:27 +08:00 |
Nguyen Anh Quynh
|
8b915ed765
|
ppc: update core
|
2014-02-19 17:01:44 +08:00 |
Nguyen Anh Quynh
|
585018f831
|
ppc & arm: remove functions *_get_insn_id2()
|
2014-02-18 00:13:34 +08:00 |
Nguyen Anh Quynh
|
a82a0890a6
|
more more fixes on C coding style
|
2014-01-23 23:42:40 +08:00 |
Nguyen Anh Quynh
|
b57c90dd23
|
fix some issues introduced by MSVC port
|
2014-01-23 21:43:08 +08:00 |
Alex Ionescu
|
b8a57fe285
|
Additional MSVC fixes, including to fixed tables (temporary so Quynh can see what to do).
|
2014-01-22 18:12:01 -08:00 |
Alex Ionescu
|
46018db884
|
Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done).
|
2014-01-22 09:45:00 -08:00 |
Nguyen Anh Quynh
|
53fc5c103a
|
cs_open() should return error on invalid mode
|
2014-01-21 15:26:02 +08:00 |
Nguyen Anh Quynh
|
3732725342
|
rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu
|
2014-01-20 09:52:05 +08:00 |
Nguyen Anh Quynh
|
c272e9d000
|
do not use constructor to enable archs, so code is more portable. suggested by Alex Ionescu
|
2014-01-19 12:03:22 +08:00 |
Nguyen Anh Quynh
|
a9ffb440f8
|
replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally
|
2014-01-15 18:27:01 +08:00 |
Nguyen Anh Quynh
|
57c50d4845
|
ppc: replace constant subtarget numbers with macros
|
2014-01-15 16:48:48 +08:00 |
Nguyen Anh Quynh
|
e51e227409
|
ppc & x86: add third dummy MRI argument to printInstruction() to make it consistent with other archs
|
2014-01-12 20:27:54 +08:00 |
Nguyen Anh Quynh
|
a8eb7a5ca5
|
rename memory function pointer types to have cs_ prefix. also rename internal function pointers my_* to have cs_mem_ prefix - suggested by Pancake
|
2014-01-11 12:55:31 +08:00 |
danghvu
|
701b850af9
|
Fix: bug that static link does not know constructor
|
2014-01-09 11:14:40 +07:00 |
Nguyen Anh Quynh
|
9fac512efc
|
no longer need to free insn_cache for each arch: simply do it from cs_close()
|
2014-01-07 10:56:04 +08:00 |
Nguyen Anh Quynh
|
1acfd0b883
|
move insn_cache into cs_struct to gurantee thread-safe
|
2014-01-06 10:56:59 +08:00 |
Nguyen Anh Quynh
|
c7404075ff
|
move internal memory management declarations from utils.h to cs_priv.h
|
2014-01-05 11:35:47 +08:00 |
Nguyen Anh Quynh
|
24bf0d9079
|
add new option CS_OPT_MEM for cs_option(): this enable user-defined dynamic memory management. idea proposed by Pancake
|
2014-01-05 11:19:04 +08:00 |
Nguyen Anh Quynh
|
2b14fcdf9b
|
ppc: update ppc.bh in post-printer
|
2014-01-05 10:37:50 +08:00 |
Nguyen Anh Quynh
|
f1d489b949
|
ppc: support details information
|
2014-01-05 00:00:05 +08:00 |
Nguyen Anh Quynh
|
b265406960
|
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
|
2014-01-03 17:08:58 +08:00 |
Nguyen Anh Quynh
|
5f1f90c559
|
fix for the last commit, and make the test code no longer specify ppc code as 64bit
|
2014-01-01 23:28:05 +08:00 |
Nguyen Anh Quynh
|
5742b1b814
|
ppc: support for PPC32 was already in
|
2014-01-01 23:24:07 +08:00 |
Nguyen Anh Quynh
|
cef6b27e95
|
remove -x from PPC files
|
2013-12-31 23:36:12 +08:00 |
Nguyen Anh Quynh
|
19b0de3c8d
|
moving static doing_mem variable into cs_struct to guarantee thread-safe when handling memory operands
|
2013-12-31 22:40:04 +08:00 |
Nguyen Anh Quynh
|
4d22779f1c
|
add the missing include/ppc.h
|
2013-12-31 21:01:01 +08:00 |
Nguyen Anh Quynh
|
ec79f401b1
|
ppc: rename PPC_getFeatureBits() to getFeatureBits()
|
2013-12-31 18:00:20 +08:00 |