Fixed width fields

This commit is contained in:
lazymio 2022-02-11 22:18:52 +01:00
parent 3e6665db00
commit acbc134f46
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 13 additions and 13 deletions

View File

@ -56,14 +56,14 @@ typedef enum uc_cpu_arm {
// ARM coprocessor registers, use this with UC_ARM_REG_CP_REG to // ARM coprocessor registers, use this with UC_ARM_REG_CP_REG to
// in call to uc_reg_write/read() to access the registers. // in call to uc_reg_write/read() to access the registers.
typedef struct uc_arm_cp_reg { typedef struct uc_arm_cp_reg {
int cp; // The coprocessor identifier uint32_t cp; // The coprocessor identifier
int is64; // Is it a 64 bit control register uint32_t is64; // Is it a 64 bit control register
int sec; // Security state uint32_t sec; // Security state
int crn; // Coprocessor register number uint32_t crn; // Coprocessor register number
int crm; // Coprocessor register number uint32_t crm; // Coprocessor register number
int opc1; // Opcode1 uint32_t opc1; // Opcode1
int opc2; // Opcode2 uint32_t opc2; // Opcode2
uint64_t val; // The value to read/write uint64_t val; // The value to read/write
} uc_arm_cp_reg; } uc_arm_cp_reg;
//> ARM registers //> ARM registers

View File

@ -26,11 +26,11 @@ typedef enum uc_cpu_aarch64 {
// ARM64 coprocessor registers, use this with UC_ARM64_REG_CP_REG to // ARM64 coprocessor registers, use this with UC_ARM64_REG_CP_REG to
// in call to uc_reg_write/read() to access the registers. // in call to uc_reg_write/read() to access the registers.
typedef struct uc_arm64_cp_reg { typedef struct uc_arm64_cp_reg {
int crn; // Coprocessor register number uint32_t crn; // Coprocessor register number
int crm; // Coprocessor register number uint32_t crm; // Coprocessor register number
int op0; // Opcode0 uint32_t op0; // Opcode0
int op1; // Opcode1 uint32_t op1; // Opcode1
int op2; // Opcode2 uint32_t op2; // Opcode2
uint64_t val; // The value to read/write uint64_t val; // The value to read/write
} uc_arm64_cp_reg; } uc_arm64_cp_reg;