diff options
author | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-10-15 19:38:51 -0700 |
---|---|---|
committer | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-20 11:29:42 -0800 |
commit | 0304109b3d40c3a46e383cadaeae365c66e1b0e4 (patch) | |
tree | 257a89da17087dce1506ddf05b07a0799f050ceb /disasm.c | |
parent | 164d60740f0aa2759ae78874bd5c8692d8d59e60 (diff) | |
download | nasm-0304109b3d40c3a46e383cadaeae365c66e1b0e4.tar.gz nasm-0304109b3d40c3a46e383cadaeae365c66e1b0e4.tar.bz2 nasm-0304109b3d40c3a46e383cadaeae365c66e1b0e4.zip |
MPX: Add BND prefix for branch instructions
BND prefix is used for adding bounds checking protection
across flow control changes such as call, ret, jmp and jcc calls.
Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'disasm.c')
-rw-r--r-- | disasm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -862,6 +862,11 @@ 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; |