diff options
author | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-08 13:31:58 -0800 |
---|---|---|
committer | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-20 11:29:42 -0800 |
commit | b4e1ae18e2b1cf136b345f85535ddeffb9f52869 (patch) | |
tree | 1537a58b1fe05e3431e99a951a42185571b2fe4b /disasm.c | |
parent | 3b65323d800a04570e4364f9419d518a16bb9512 (diff) | |
download | nasm-b4e1ae18e2b1cf136b345f85535ddeffb9f52869.tar.gz nasm-b4e1ae18e2b1cf136b345f85535ddeffb9f52869.tar.bz2 nasm-b4e1ae18e2b1cf136b345f85535ddeffb9f52869.zip |
MPX: Move BND prefix indication from bytecode to iflags
As BND prefix validity check conflicts with jcc8 prefix,
IF_BND is added for the instruction templates which can have
bnd prefix for preserving the content of bound register.
Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'disasm.c')
-rw-r--r-- | disasm.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -408,7 +408,7 @@ static int matches(const struct itemplate *t, uint8_t *data, return false; if (prefix->rep == 0xF2) - drep = P_REPNE; + drep = (t->flags & IF_BND ? P_BND : P_REPNE); else if (prefix->rep == 0xF3) drep = P_REP; @@ -862,11 +862,6 @@ static int matches(const struct itemplate *t, uint8_t *data, case 0371: break; - case 0372: - if (prefix->rep == 0xF2) - drep = P_BND; - break; - case 0374: eat = EA_XMMVSIB; break; |