summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-01-31 03:38:22 +0000
committerpfg <pfg@FreeBSD.org>2014-01-31 03:38:22 +0000
commitc50ca945d8ef48f05b17499c99bd6b3b1fed589c (patch)
treec7b2fa3575e92237726379f6ecdf629130c48110 /contrib/binutils/gas
parent0d230789fc8f0ee3f6866cb5fa0a2d6f360b3bed (diff)
downloadFreeBSD-src-c50ca945d8ef48f05b17499c99bd6b3b1fed589c.zip
FreeBSD-src-c50ca945d8ef48f05b17499c99bd6b3b1fed589c.tar.gz
MFC r261175:
binutils: add support for Intel SMAP-related instructions Add support for stac/clac instructions to manipulate the flag that controls the behaviour of Intel's Supervisor Mode Access Prevention (SMAP) feature. Tested by: dim Obtained from: OpenBSD
Diffstat (limited to 'contrib/binutils/gas')
-rw-r--r--contrib/binutils/gas/config/tc-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c
index 6eb51aa..5c8e6b1 100644
--- a/contrib/binutils/gas/config/tc-i386.c
+++ b/contrib/binutils/gas/config/tc-i386.c
@@ -1827,7 +1827,7 @@ md_assemble (line)
{
expressionS *exp;
- if ((i.tm.cpu_flags & CpuSSE3) && i.operands > 0)
+ if ((i.tm.cpu_flags & (CpuSSE3|CpuSMAP)) && i.operands > 0)
{
/* Streaming SIMD extensions 3 Instructions have the fixed
operands with an opcode suffix which is coded in the same
OpenPOWER on IntegriCloud