From b813ce366a4313a28b2ac26e92da0cb8d6a01a75 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 9 Dec 2019 14:00:15 +0100 Subject: [PATCH] x86/CPUID: RSTR_FP_ERR_PTRS depends on FPU There's nothing to restore here if there's no FPU in the first place. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- xen/tools/gen-cpuid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/tools/gen-cpuid.py b/xen/tools/gen-cpuid.py index 2e76f9abc0..362cdb5306 100755 --- a/xen/tools/gen-cpuid.py +++ b/xen/tools/gen-cpuid.py @@ -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. -- 2.30.2