diff --git a/decode.c b/decode.c index 2c920be..216653a 100644 --- a/decode.c +++ b/decode.c @@ -78,14 +78,14 @@ enum PrefixSet PREFIX_REP = FD_FLAG_REP, PREFIX_REPNZ = FD_FLAG_REPNZ, PREFIX_REX = FD_FLAG_REX, - PREFIX_VEXL = FD_FLAG_VEXL, PREFIX_OPSZ = 1 << 13, PREFIX_ADDRSZ = 1 << 14, PREFIX_REXB = 1 << 15, PREFIX_REXX = 1 << 16, PREFIX_REXR = 1 << 17, PREFIX_REXW = 1 << 18, - PREFIX_VEX = 1 << 21, + PREFIX_VEXL = 1 << 19, + PREFIX_VEX = 1 << 20, }; typedef enum PrefixSet PrefixSet; diff --git a/fadec.h b/fadec.h index 3fae6fe..1516f4b 100644 --- a/fadec.h +++ b/fadec.h @@ -38,7 +38,6 @@ enum { FD_FLAG_REP = 1 << 1, FD_FLAG_REPNZ = 1 << 2, FD_FLAG_REX = 1 << 3, - FD_FLAG_VEXL = 1 << 4, FD_FLAG_64 = 1 << 7, }; @@ -124,8 +123,6 @@ void fd_format(const FdInstr* instr, char* buf, size_t len); /** Indicates whether the instruction was encoded with a LOCK prefix. Note that * it is not checked whether the LOCK prefix is valid for the instruction. **/ #define FD_HAS_LOCK(instr) ((instr)->flags & FD_FLAG_LOCK) -/** Indicates whether the instruction was encoded with a VEX.L prefix. **/ -#define FD_HAS_VEXL(instr) ((instr)->flags & FD_FLAG_VEXL) #define FD_IS64(instr) ((instr)->flags & FD_FLAG_64) /** Gets the type of an operand at the given index. **/