]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Dec 2019 13:00:15 +0000 (14:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Dec 2019 13:00:15 +0000 (14:00 +0100)
There's nothing to restore here if there's no FPU in the first place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/tools/gen-cpuid.py

index 2e76f9abc00604e03683406f7ef2ecacd6c54e64..362cdb530680fc5532a8b84f44fcca2986906011 100755 (executable)
@@ -168,8 +168,9 @@ def crunch_numbers(state):
     deps = {
         # FPU is taken to mean support for the x87 regisers as well as the
         # instructions.  MMX is documented to alias the %MM registers over the
-        # x87 %ST registers in hardware.
-        FPU: [MMX],
+        # x87 %ST registers in hardware.  Correct restoring of error pointers
+        # of course makes no sense without there being anything to restore.
+        FPU: [MMX, RSTR_FP_ERR_PTRS],
 
         # The PSE36 feature indicates that reserved bits in a PSE superpage
         # may be used as extra physical address bits.