From dae7c3ee9f9f8aeca79fbbf93c46861baf0b4823 Mon Sep 17 00:00:00 2001 From: pancake Date: Wed, 11 Mar 2015 00:23:22 +0100 Subject: [PATCH 1/2] add ARM64_GRP_PRIVILEGE group and tag some instructions --- arch/AArch64/AArch64MappingInsn.inc | 6 +++--- include/capstone/arm64.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/AArch64/AArch64MappingInsn.inc b/arch/AArch64/AArch64MappingInsn.inc index 13cd1f89..bbf28385 100644 --- a/arch/AArch64/AArch64MappingInsn.inc +++ b/arch/AArch64/AArch64MappingInsn.inc @@ -6436,19 +6436,19 @@ { AArch64_MRS, ARM64_INS_MRS, #ifndef CAPSTONE_DIET - { 0 }, { 0 }, { 0 }, 0, 0 + { 0 }, { 0 }, { ARM64_GRP_PRIVILEGE, 0 }, 0, 0 #endif }, { AArch64_MSR, ARM64_INS_MSR, #ifndef CAPSTONE_DIET - { 0 }, { 0 }, { 0 }, 0, 0 + { 0 }, { 0 }, { ARM64_GRP_PRIVILEGE, 0 }, 0, 0 #endif }, { AArch64_MSRpstate, ARM64_INS_MSR, #ifndef CAPSTONE_DIET - { 0 }, { ARM64_REG_NZCV, 0 }, { 0 }, 0, 0 + { 0 }, { ARM64_REG_NZCV, 0 }, { ARM64_GRP_PRIVILEGE, 0 }, 0, 0 #endif }, { diff --git a/include/capstone/arm64.h b/include/capstone/arm64.h index 9182f9d3..ded9a5f8 100644 --- a/include/capstone/arm64.h +++ b/include/capstone/arm64.h @@ -1140,6 +1140,7 @@ typedef enum arm64_insn_group { ARM64_GRP_FPARMV8, ARM64_GRP_NEON, ARM64_GRP_CRC, + ARM64_GRP_PRIVILEGE, ARM64_GRP_ENDING, // <-- mark the end of the list of groups } arm64_insn_group; From a089e1445cd5d2bc4b9864ae16479a1129673475 Mon Sep 17 00:00:00 2001 From: pancake Date: Wed, 11 Mar 2015 03:31:30 +0100 Subject: [PATCH 2/2] Fix ARM64_GRP_PRIVILEGE --- include/capstone/arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/capstone/arm64.h b/include/capstone/arm64.h index ded9a5f8..5854a949 100644 --- a/include/capstone/arm64.h +++ b/include/capstone/arm64.h @@ -1134,13 +1134,13 @@ typedef enum arm64_insn_group { //> Generic groups // all jump instructions (conditional+direct+indirect jumps) ARM64_GRP_JUMP, // = CS_GRP_JUMP + ARM64_GRP_PRIVILEGE = 6, // = CS_GRP_PRIVILEGE //> Architecture-specific groups ARM64_GRP_CRYPTO = 128, ARM64_GRP_FPARMV8, ARM64_GRP_NEON, ARM64_GRP_CRC, - ARM64_GRP_PRIVILEGE, ARM64_GRP_ENDING, // <-- mark the end of the list of groups } arm64_insn_group;