Version 6.0.0-Alpha10
We are happy to announce Capstone 6.0.0-Alpha10.
API changes and additions
-
Enum names of the Alpha architecture are now correctly all upper case. Because of an old Auto-Sync bug all the enum names were prefixed with
Alphainstead ofALPHAand some contained lower case letters. Sadly, I just recently recognized that Alpha was effected by that bug.While this change is very annoying for everybody using the Alpha module, it must be done before the Beta release. Please excuse the inconvenience!
A simple command to replace almost all of these occurrences in your code base is:
find . -type f -regex ".*\.\(c\|h\)$" -exec sed -i -E "s|Alpha_([A-Z0-9_]+)|ALPHA_\1|g" {} +Author: @Rot127
-
RISC-V got a v5 compatibility macro for its header. With its recent module update
CS_MODE_RISCVCwas renamed toCS_MODE_RISCV_Cto be more consistent with the otherCS_MODE_enums. This could break builds against av5code base which only hasCS_MODE_RISCVC.Now you can simply define
CAPSTONE_RISCV_COMPAT_HEADERbefore includingcapstone.handCS_MODE_RISCVCwill be defined as alias forCS_MODE_RISCV_C#define CAPSTONE_RISCV_COMPAT_HEADER #include <capstone/capstone.h>Author: @moste00
-
Prevent literal displacement truncation for AArch64 memory operands. There are AArch64 displacements which are 64bit in size. But
aarch64_op_mem.dispwas anint32_t. It was promoted to anint64_t. Author: @amaanmujawar -
Fixed several decoding bugs in the Alpha module. See https://github.com/capstone-engine/capstone/pull/2967 for details. Author: @mattst88
-
The RISC-V details now also include the FP rounding mode
cs_riscv.rounding_mode. Author: @moste00 -
AArch64: Add
CS_OPT_SYNTAX_AARCH64_EXPLICIT_WIDE_IMMflag to print shiftedMOVNandMOVZinstructions in their explicit forms instead of using the equivalentMOValiases.Example output from
cstool:> cstool aarch64 0xe402a012 mov w4, #-0x170001 > cstool aarch64+explicitwideimm 0xe402a012 movn w4, #0x17, lsl #16 > cstool aarch64+explicitwideimm 0xe402a052 movz w4, #0x17, lsl #16Author: @amaanmujawar
-
M68K: Fixed EA decoding error and added ColdFire EMAC_B dual-acc MAC. Author: @b1llow
See the full release notes at https://github.com/capstone-engine/capstone/releases/tag/6.0.0-Alpha10
