|
|
@ -435,7 +435,7 @@ void ARM_init(MCRegisterInfo *MRI) |
|
|
|
0); |
|
|
|
0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static DecodeStatus _ARM_getInstruction(cs_struct *ud, MCInst *MI, unsigned char *code, size_t code_len, |
|
|
|
static DecodeStatus _ARM_getInstruction(cs_struct *ud, MCInst *MI, const uint8_t *code, size_t code_len, |
|
|
|
uint16_t *Size, uint64_t Address) |
|
|
|
uint16_t *Size, uint64_t Address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t bytes[4]; |
|
|
|
uint8_t bytes[4]; |
|
|
@ -656,7 +656,7 @@ static void UpdateThumbVFPPredicate(cs_struct *ud, MCInst *MI) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static DecodeStatus _Thumb_getInstruction(cs_struct *ud, MCInst *MI, unsigned char *code, size_t code_len, |
|
|
|
static DecodeStatus _Thumb_getInstruction(cs_struct *ud, MCInst *MI, const uint8_t *code, size_t code_len, |
|
|
|
uint16_t *Size, uint64_t Address) |
|
|
|
uint16_t *Size, uint64_t Address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t bytes[4]; |
|
|
|
uint8_t bytes[4]; |
|
|
@ -830,7 +830,7 @@ static DecodeStatus _Thumb_getInstruction(cs_struct *ud, MCInst *MI, unsigned ch |
|
|
|
return MCDisassembler_Fail; |
|
|
|
return MCDisassembler_Fail; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool Thumb_getInstruction(csh ud, unsigned char *code, size_t code_len, MCInst *instr, |
|
|
|
bool Thumb_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, |
|
|
|
uint16_t *size, uint64_t address, void *info) |
|
|
|
uint16_t *size, uint64_t address, void *info) |
|
|
|
{ |
|
|
|
{ |
|
|
|
DecodeStatus status = _Thumb_getInstruction((cs_struct *)ud, instr, code, code_len, size, address); |
|
|
|
DecodeStatus status = _Thumb_getInstruction((cs_struct *)ud, instr, code, code_len, size, address); |
|
|
@ -839,7 +839,7 @@ bool Thumb_getInstruction(csh ud, unsigned char *code, size_t code_len, MCInst * |
|
|
|
return status != MCDisassembler_Fail; |
|
|
|
return status != MCDisassembler_Fail; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool ARM_getInstruction(csh ud, unsigned char *code, size_t code_len, MCInst *instr, |
|
|
|
bool ARM_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, |
|
|
|
uint16_t *size, uint64_t address, void *info) |
|
|
|
uint16_t *size, uint64_t address, void *info) |
|
|
|
{ |
|
|
|
{ |
|
|
|
DecodeStatus status = _ARM_getInstruction((cs_struct *)ud, instr, code, code_len, size, address); |
|
|
|
DecodeStatus status = _ARM_getInstruction((cs_struct *)ud, instr, code, code_len, size, address); |
|
|
|