commit | 0c864409f3eb7885c6d027aceb6ffbb70783e322 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Apr 27 14:47:05 2016 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Apr 27 14:47:05 2016 +0800 |
tree | 3eb6521a51b09baac2d5a61174028e7adb5f6a92 | |
parent | c2cb0e7d9cc6f5251598cee0b89b36eca359570e [diff] [blame] |
arm: only reset IT block for ARM
diff --git a/cs.c b/cs.c index ed3c5b4..e7f8a03 100644 --- a/cs.c +++ b/cs.c
@@ -467,7 +467,8 @@ handle->errnum = CS_ERR_OK; // reset IT block of ARM structure - handle->ITBlock.size = 0; + if (handle->arch == CS_ARCH_ARM) + handle->ITBlock.size = 0; #ifdef CAPSTONE_USE_SYS_DYN_MEM if (count > 0 && count <= INSN_CACHE_SIZE)