Commit Graph

153 Commits

Author SHA1 Message Date
Nguyen Anh Quynh aa078a1c4a more fixes on C coding style 2014-01-23 22:29:04 +08:00
Nguyen Anh Quynh 2e79ba8996 fix C coding style 2014-01-23 22:22:45 +08:00
Nguyen Anh Quynh eaeee31f64 Merge branch 'msvc' into test 2014-01-23 22:10:41 +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 c34959b588 x86: proper calculation for the trailing instruction in total cache. issue reported by Pancake 2014-01-22 09:47:46 +08:00
Nguyen Anh Quynh c36ce95d4a x86: proper calculation for the trailing instruction in total cache. issue reported by Pancake 2014-01-22 09:46:42 +08:00
Nguyen Anh Quynh 06b3c05e20 cs_open() should return error on invalid mode 2014-01-21 15:27:19 +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 9a291bda75 x86: do not use non-standard strlcat & strlcpy 2014-01-21 14:01:23 +08:00
Nguyen Anh Quynh b9ff3aaf19 x86: do not use non-standard strlcat & strlcpy 2014-01-21 14:00:34 +08:00
Nguyen Anh Quynh dc8c346cf0 Merge branch 'prefix' into next 2014-01-21 11:59:51 +08:00
Nguyen Anh Quynh 7772d859af x86: fix known issue with prefix by combining with previous prefix instruction. this is not perfect, but good enough for now 2014-01-21 11:49:25 +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 f328f30fd9 rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu 2014-01-20 09:47:21 +08:00
Nguyen Anh Quynh d68a30f4c3 x86: remove 'opaque' in the output of some instructions 2014-01-19 22:40:58 +08:00
Nguyen Anh Quynh 9dfdae6421 x86: add new instructions: FSETPM, SALC, GETSEC & INT1. bug reported by Pancake 2014-01-19 22:40:31 +08:00
Nguyen Anh Quynh 38c1322bde x86: remove 'opaque' in the output of some instructions 2014-01-19 17:23:08 +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 edeeb04a1a make vsnprintf() user-defined function pointer, which is passed in via the same CS_OPT_MEM option like malloc/calloc etc 2014-01-15 20:44:03 +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 136e2df38c x86: some arithmetic instructions should not update accumulate registers 2014-01-15 16:35:19 +08:00
Nguyen Anh Quynh 9cc56a3322 arm: update core 2014-01-15 16:01:55 +08:00
Nguyen Anh Quynh cbb10ba0b6 arm64: update core 2014-01-15 12:38:38 +08:00
Nguyen Anh Quynh 75ef2426ea mips: update core 2014-01-14 23:08:20 +08:00
Nguyen Anh Quynh 9c2d02908a x86: few more SUB insn should not affect accumulate register 2014-01-14 07:30:31 +08:00
Nguyen Anh Quynh 3d56b823ed extend @op_str of cs_insn_flat following the core change 2014-01-14 07:22:06 +08:00
Nguyen Anh Quynh 22800aac13 x86: some ADD & SUB insn should not affect accumulate registers. bug reported by Bleh 2014-01-14 07:21:17 +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 56774a158c mips: printInstruction() is static function. add dummy third argument MRI to be consistent with other archs 2014-01-12 18:13:53 +08:00
Nguyen Anh Quynh dcbe0f8322 arm64: find alias insn after the main isnn name mapping. 2014-01-12 10:11:36 +08:00
Nguyen Anh Quynh dc6b9574ff arm64: more changes to make code closer to llvm 2014-01-12 00:52:51 +08:00
Nguyen Anh Quynh 126507741c arm64: make the code closer to llvm code 2014-01-11 23:52:11 +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 77944e0dab arm64: add big-endian support 2014-01-09 09:13:48 +08:00
Nguyen Anh Quynh a768c9eb2c arm: support big-endian. issue reported by Pancake 2014-01-09 09:05:27 +08:00
Nguyen Anh Quynh f1b05083a7 x86: cleanup unused stuff 2014-01-08 14:53:09 +08: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 5802e5e9a0 correct the last fix 2014-01-04 10:43:31 +08:00
Nguyen Anh Quynh 5ef633ce91 arm64 & arm: do not update details when detail option is off. bug reported by Pancake. 2014-01-04 10:41:17 +08:00
Nguyen Anh Quynh ee143c8c6c fix a crashed bug in cs_close(): call destroy function before freeing handle's memory 2014-01-03 21:51:59 +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