From f6c51f084bbac16aec7c4f536542297030f17348 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 14 Feb 2008 11:25:14 -0800 Subject: Add XSAVE instruction features (CPU feature is bogus, but oh well.) Add the XSAVE group of instructions: XSAVE, XRSTOR, XGETBV, XSETBV. The CPU feature information is bogus, but so is our entire handling of CPU feature sets for anything but the bare necessities (long jump emulation, etc.) --- insns.dat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/insns.dat b/insns.dat index 555d5cb..323a7f5 100644 --- a/insns.dat +++ b/insns.dat @@ -1464,6 +1464,13 @@ XORPS xmmreg,xmmrm \2\x0F\x57\110 KATMAI,SSE FXRSTOR mem \2\x0F\xAE\201 P6,SSE,FPU FXSAVE mem \2\x0F\xAE\200 P6,SSE,FPU +; Introduced in ??? ... we really need to clean up the handling +; of CPU feature bits. +XGETBV void \3\x0F\x01\xD0 NEHALEM,PRIV +XSETBV void \3\x0F\x01\xD1 NEHALEM,PRIV +XSAVE mem \2\x0F\xAE\204 NEHALEM +XRSTOR mem \2\x0F\xAE\205 NEHALEM + ; These instructions are not SSE-specific; they are ;# Generic memory operations ; and work even if CR4.OSFXFR == 0 -- cgit v1.2.3