mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/asm: remove HAVE_AS_CLAC_STAC
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>
This commit is contained in:
1 parent
350d63eff6
commit
a48be48f0c
2 files changed
-11
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||