diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-08-19 17:04:36 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-08-19 17:04:36 -0700 |
commit | 5d62e57a0c8fd4b2aa9c9b671ba43be2817d789f (patch) | |
tree | eb53a6dcc21a3112769ebaa2aa4069f6d6a3880b /disasm.c | |
parent | 23f0b16c21467aefd2b8ae5c507af902d102d39e (diff) | |
download | nasm-5d62e57a0c8fd4b2aa9c9b671ba43be2817d789f.tar.gz nasm-5d62e57a0c8fd4b2aa9c9b671ba43be2817d789f.tar.bz2 nasm-5d62e57a0c8fd4b2aa9c9b671ba43be2817d789f.zip |
ndisasm: handle VEX.LIG
A lot of instructions ignore the L bit in the VEX prefix, just like
a lot of instructions ignore the W bit, so don't use them in the
sub-table select.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'disasm.c')
-rw-r--r-- | disasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1081,7 +1081,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize, prefix.vex_lp = prefix.vex[1] & 7; } - ix = itable_vex[RV_VEX][prefix.vex_m][prefix.vex_lp]; + ix = itable_vex[RV_VEX][prefix.vex_m][prefix.vex_lp & 3]; } end_prefix = true; break; |