From f1656de40ade14e660032a21dd427b06ecd7cb7a Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 29 Nov 2013 20:26:34 +0800 Subject: [PATCH] reduce the size of @operands for arm & arm64 --- bindings/python/capstone/arm.py | 2 +- bindings/python/capstone/arm64.py | 2 +- include/arm.h | 2 +- include/arm64.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/capstone/arm.py b/bindings/python/capstone/arm.py index 8388560f41..30461bae4c 100644 --- a/bindings/python/capstone/arm.py +++ b/bindings/python/capstone/arm.py @@ -78,7 +78,7 @@ class _cs_arm(ctypes.Structure): ('update_flags', ctypes.c_bool), ('writeback', ctypes.c_bool), ('op_count', ctypes.c_uint8), - ('operands', arm_op * 32), + ('operands', arm_op * 20), ) def get_arch_info(arch): diff --git a/bindings/python/capstone/arm64.py b/bindings/python/capstone/arm64.py index ccf92f717b..6702243934 100644 --- a/bindings/python/capstone/arm64.py +++ b/bindings/python/capstone/arm64.py @@ -85,7 +85,7 @@ class _cs_arm64(ctypes.Structure): ('update_flags', ctypes.c_bool), ('writeback', ctypes.c_bool), ('op_count', ctypes.c_uint8), - ('operands', arm64_op * 32), + ('operands', arm64_op * 8), ) def get_arch_info(a): diff --git a/include/arm.h b/include/arm.h index 27cad9552e..ecbdd35013 100644 --- a/include/arm.h +++ b/include/arm.h @@ -90,7 +90,7 @@ typedef struct cs_arm { // or 0 when instruction has no operand. uint8_t op_count; - cs_arm_op operands[32]; // operands for this instruction. + cs_arm_op operands[20]; // operands for this instruction. } cs_arm; // ARM registers diff --git a/include/arm64.h b/include/arm64.h index c15a3fd0e6..9f721173d0 100644 --- a/include/arm64.h +++ b/include/arm64.h @@ -99,7 +99,7 @@ typedef struct cs_arm64 { // or 0 when instruction has no operand. uint8_t op_count; - cs_arm64_op operands[32]; // operands for this instruction. + cs_arm64_op operands[8]; // operands for this instruction. } cs_arm64; // ARM64 registers