From acbc134f46dd5d9f56ce46beef1ddc98d13a0acb Mon Sep 17 00:00:00 2001 From: lazymio Date: Fri, 11 Feb 2022 22:18:52 +0100 Subject: [PATCH] Fixed width fields --- include/unicorn/arm.h | 16 ++++++++-------- include/unicorn/arm64.h | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/unicorn/arm.h b/include/unicorn/arm.h index 9d352734..b71da2e8 100644 --- a/include/unicorn/arm.h +++ b/include/unicorn/arm.h @@ -56,14 +56,14 @@ typedef enum uc_cpu_arm { // ARM coprocessor registers, use this with UC_ARM_REG_CP_REG to // in call to uc_reg_write/read() to access the registers. typedef struct uc_arm_cp_reg { - int cp; // The coprocessor identifier - int is64; // Is it a 64 bit control register - int sec; // Security state - int crn; // Coprocessor register number - int crm; // Coprocessor register number - int opc1; // Opcode1 - int opc2; // Opcode2 - uint64_t val; // The value to read/write + uint32_t cp; // The coprocessor identifier + uint32_t is64; // Is it a 64 bit control register + uint32_t sec; // Security state + uint32_t crn; // Coprocessor register number + uint32_t crm; // Coprocessor register number + uint32_t opc1; // Opcode1 + uint32_t opc2; // Opcode2 + uint64_t val; // The value to read/write } uc_arm_cp_reg; //> ARM registers diff --git a/include/unicorn/arm64.h b/include/unicorn/arm64.h index 6290a8fb..db07082e 100644 --- a/include/unicorn/arm64.h +++ b/include/unicorn/arm64.h @@ -26,11 +26,11 @@ typedef enum uc_cpu_aarch64 { // ARM64 coprocessor registers, use this with UC_ARM64_REG_CP_REG to // in call to uc_reg_write/read() to access the registers. typedef struct uc_arm64_cp_reg { - int crn; // Coprocessor register number - int crm; // Coprocessor register number - int op0; // Opcode0 - int op1; // Opcode1 - int op2; // Opcode2 + uint32_t crn; // Coprocessor register number + uint32_t crm; // Coprocessor register number + uint32_t op0; // Opcode0 + uint32_t op1; // Opcode1 + uint32_t op2; // Opcode2 uint64_t val; // The value to read/write } uc_arm64_cp_reg;