arm64: fix some compilation warnings & indentation

This commit is contained in:
Nguyen Anh Quynh 2016-01-22 22:25:49 +08:00
parent 3450142c58
commit aab7f63b02
3 changed files with 192 additions and 192 deletions

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//
/* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2016 */
#ifdef CAPSTONE_HAS_ARM64
@ -48,7 +48,7 @@ static void printShifter(MCInst *MI, unsigned OpNum, SStream *O);
static cs_ac_type get_op_access(cs_struct *h, unsigned int id, unsigned int index)
{
#ifndef CAPSTONE_DIET
cs_ac_type *arr = arm64_get_op_access(h, id);
uint8_t *arr = AArch64_get_op_access(h, id);
if (arr[index] == CS_AC_IGNORE)
return 0;

View File

@ -1005,7 +1005,7 @@ void arm64_op_addImm(MCInst *MI, int64_t imm)
// map instruction to its characteristics
typedef struct insn_op {
unsigned int eflags_update; // how this instruction update status flags
cs_ac_type operands[5];
uint8_t access[5];
} insn_op;
static insn_op insn_ops[] = {
@ -1018,11 +1018,11 @@ static insn_op insn_ops[] = {
};
// given internal insn id, return operand access info
cs_ac_type *arm64_get_op_access(cs_struct *h, unsigned int id)
uint8_t *AArch64_get_op_access(cs_struct *h, unsigned int id)
{
int i = insn_find(insns, ARR_SIZE(insns), id, &h->insn_cache);
if (i != 0) {
return insn_ops[i].operands;
return insn_ops[i].access;
}
return NULL;

View File

@ -32,7 +32,7 @@ void arm64_op_addFP(MCInst *MI, float fp);
void arm64_op_addImm(MCInst *MI, int64_t imm);
cs_ac_type *arm64_get_op_access(cs_struct *h, unsigned int id);
uint8_t *AArch64_get_op_access(cs_struct *h, unsigned int id);
void AArch64_reg_access(const cs_insn *insn,
cs_regs regs_read, uint8_t *regs_read_count,