From e249b1a313b2e7925a12416af8172632588e77cd Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 27 Aug 2020 21:07:57 +0200 Subject: arch/x86: x86_64 implies SSE2 support Enable SSE2 (and SSE) when compiling for x86_64. Compilers often assume SSE2 is present and enabled when targeting x86_64. This fixes: - lzma decompression code is compiled with the -Ofast flag - 'everything' when compiling with clang. This mostly affects qemu targets, which did not have this flag selected yet. TESTED on qemu. Change-Id: I3cdc584c97016e15513df663a54a7bdb549a73e4 Signed-off-by: Patrick Rudolph Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/44869 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/arch/x86/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/x86/Kconfig') diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig index c00eb0c3b5..b60f600541 100644 --- a/src/arch/x86/Kconfig +++ b/src/arch/x86/Kconfig @@ -39,19 +39,24 @@ config ARCH_ALL_STAGES_X86_32 config ARCH_BOOTBLOCK_X86_64 bool + select SSE2 config ARCH_VERSTAGE_X86_64 bool + select SSE2 config ARCH_ROMSTAGE_X86_64 bool + select SSE2 config ARCH_POSTCAR_X86_64 bool default ARCH_ROMSTAGE_X86_64 && POSTCAR_STAGE + select SSE2 config ARCH_RAMSTAGE_X86_64 bool + select SSE2 config ARCH_ALL_STAGES_X86_64 bool -- cgit v1.2.3