diff options
author | jhb <jhb@FreeBSD.org> | 2012-07-04 22:12:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-07-04 22:12:10 +0000 |
commit | 2ce653dc23b0936cbde96f33f880475b25dbdaba (patch) | |
tree | 8ee8e0ddd2e44400cf824846499bf22e3f69e664 /contrib/binutils/gas | |
parent | 4f65fa236f2375697aae8a26e4208dd71aadf951 (diff) | |
download | FreeBSD-src-2ce653dc23b0936cbde96f33f880475b25dbdaba.zip FreeBSD-src-2ce653dc23b0936cbde96f33f880475b25dbdaba.tar.gz |
Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'
instructions. I reimplemented this from scratch based on the Intel
manuals and the existing support for handling the fxsave and fxrstor
instructions. This will let us use these instructions natively with GCC
rather than hardcoding the opcodes in hex.
Reviewed by: kib
MFC after: 1 month
Diffstat (limited to 'contrib/binutils/gas')
-rw-r--r-- | contrib/binutils/gas/config/tc-i386.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c index 296fdcd..4c13a72 100644 --- a/contrib/binutils/gas/config/tc-i386.c +++ b/contrib/binutils/gas/config/tc-i386.c @@ -517,7 +517,9 @@ static const arch_entry cpu_arch[] = {".sse4a", PROCESSOR_UNKNOWN, CpuMMX|CpuMMX2|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4a}, {".abm", PROCESSOR_UNKNOWN, - CpuABM} + CpuABM}, + {".xsave", PROCESSOR_UNKNOWN, + CpuXSAVE} }; const pseudo_typeS md_pseudo_table[] = |