summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-10-15 19:38:51 -0700
committerJin Kyu Song <jin.kyu.song@intel.com>2013-11-20 11:29:42 -0800
commit0304109b3d40c3a46e383cadaeae365c66e1b0e4 (patch)
tree257a89da17087dce1506ddf05b07a0799f050ceb /disasm.c
parent164d60740f0aa2759ae78874bd5c8692d8d59e60 (diff)
downloadnasm-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/disasm.c b/disasm.c
index f50ceb9..eace1e9 100644
--- a/disasm.c
+++ b/disasm.c
@@ -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;