arm64: add NEGS & NGCS alias instructions. this fixes issue #752

This commit is contained in:
Nguyen Anh Quynh 2016-08-23 14:01:17 +08:00
parent fbd27e2c41
commit e147e3a051
5 changed files with 12 additions and 9 deletions

View File

@ -304,12 +304,6 @@ static insn_map insns[] = {
#include "AArch64MappingInsn.inc"
};
// some alias instruction only need to be defined locally to satisfy
// some lookup functions
// just make sure these IDs never reuse any other IDs ARM_INS_*
#define ARM64_INS_NEGS (unsigned short)-1
#define ARM64_INS_NGCS (unsigned short)-2
// given internal insn id, return public instruction info
void AArch64_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
{

View File

@ -1029,7 +1029,9 @@ public class Arm64_const {
public static final int ARM64_INS_DC = 449;
public static final int ARM64_INS_AT = 450;
public static final int ARM64_INS_TLBI = 451;
public static final int ARM64_INS_ENDING = 452;
public static final int ARM64_INS_NEGS = 452;
public static final int ARM64_INS_NGCS = 453;
public static final int ARM64_INS_ENDING = 454;
// Group of ARM64 instructions

View File

@ -1026,7 +1026,9 @@ let _ARM64_INS_IC = 448;;
let _ARM64_INS_DC = 449;;
let _ARM64_INS_AT = 450;;
let _ARM64_INS_TLBI = 451;;
let _ARM64_INS_ENDING = 452;;
let _ARM64_INS_NEGS = 452;;
let _ARM64_INS_NGCS = 453;;
let _ARM64_INS_ENDING = 454;;
(* Group of ARM64 instructions *)

View File

@ -1026,7 +1026,9 @@ ARM64_INS_IC = 448
ARM64_INS_DC = 449
ARM64_INS_AT = 450
ARM64_INS_TLBI = 451
ARM64_INS_ENDING = 452
ARM64_INS_NEGS = 452
ARM64_INS_NGCS = 453
ARM64_INS_ENDING = 454
# Group of ARM64 instructions

View File

@ -1129,6 +1129,9 @@ typedef enum arm64_insn {
ARM64_INS_AT,
ARM64_INS_TLBI,
ARM64_INS_NEGS,
ARM64_INS_NGCS,
ARM64_INS_ENDING, // <-- mark the end of the list of insn
} arm64_insn;