Skip to content

Commit

Permalink
arm: only reset IT block for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 27, 2016
1 parent c2cb0e7 commit 0c86440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64
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)
Expand Down

0 comments on commit 0c86440

Please sign in to comment.