]> xenbits.xensource.com Git - xen.git/commitdiff
x86/asm: remove HAVE_AS_CLAC_STAC
authorDenis Mukhin <dmukhin@ford.com>
Tue, 1 Apr 2025 22:21:38 +0000 (22:21 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Apr 2025 12:16:27 +0000 (13:16 +0100)
The new toolchain baseline knows the STAC/CLAC instructions,
no need to carry the workaround in the code.

Resolves: https://gitlab.com/xen-project/xen/-/work_items/203
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/arch.mk
xen/arch/x86/include/asm/asm-defns.h

index cb47d729911e2ef691afba6a72c42ee610646a25..258e459bec37395f5f3292e52cf352f236bf6d96 100644 (file)
@@ -17,7 +17,6 @@ $(call as-option-add,CFLAGS,CC,"rdrand %eax",-DHAVE_AS_RDRAND)
 $(call as-option-add,CFLAGS,CC,"rdfsbase %rax",-DHAVE_AS_FSGSBASE)
 $(call as-option-add,CFLAGS,CC,"xsaveopt (%rax)",-DHAVE_AS_XSAVEOPT)
 $(call as-option-add,CFLAGS,CC,"rdseed %eax",-DHAVE_AS_RDSEED)
-$(call as-option-add,CFLAGS,CC,"clac",-DHAVE_AS_CLAC_STAC)
 $(call as-option-add,CFLAGS,CC,"clwb (%rax)",-DHAVE_AS_CLWB)
 $(call as-option-add,CFLAGS,CC,".equ \"x\"$(comma)1",-DHAVE_AS_QUOTED_SYM)
 $(call as-option-add,CFLAGS,CC,"invpcid (%rax)$(comma)%rax",-DHAVE_AS_INVPCID)
index 32d6b449106305bb6b19f9a93ccde2bcadcf05bf..ab653f321800385633c2f8bdcf43bfedfedb6f59 100644 (file)
@@ -1,15 +1,5 @@
 #include <asm/page-bits.h>
 
-#ifndef HAVE_AS_CLAC_STAC
-.macro clac
-    .byte 0x0f, 0x01, 0xca
-.endm
-
-.macro stac
-    .byte 0x0f, 0x01, 0xcb
-.endm
-#endif
-
 .macro vmrun
     .byte 0x0f, 0x01, 0xd8
 .endm