From 53ca6a2f2336ca34a162e3f8cebe7d591fccc451 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Sun, 24 Feb 2019 15:48:08 +0100 Subject: [PATCH] Drop export of VEX.L prefix This was previously needed to distinguish VZEROALL and VZEROUPPER. As mandatory VEX.L is now handled properly, there is no need to export this encoding detail any longer. --- decode.c | 4 ++-- fadec.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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. **/