Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1429088

Re: [PATCH] x86: prevent gcc from emitting SSE into boot code

From Dmitry Vyukov <dvyukov@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH] x86: prevent gcc from emitting SSE into boot code
Date 2016-06-22 22:20 +0200
Message-ID <rMWMW-87F-3@gated-at.bofh.it> (permalink)
References <rMUi5-6sA-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 22, 2016 at 7:37 PM, Dmitry Vyukov <dvyukov@google.com> wrote:
> Latest gcc manages to emit MOVDQA into boot code
> which leads to crashes. Add more -mno-see flags.
>
> Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
> ---
>  arch/x86/boot/compressed/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
> index f135688..7eaafb8 100644
> --- a/arch/x86/boot/compressed/Makefile
> +++ b/arch/x86/boot/compressed/Makefile
> @@ -31,7 +31,7 @@ KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
>  cflags-$(CONFIG_X86_32) := -march=i386
>  cflags-$(CONFIG_X86_64) := -mcmodel=small
>  KBUILD_CFLAGS += $(cflags-y)
> -KBUILD_CFLAGS += -mno-mmx -mno-sse
> +KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-sse2 -mno-sse3
>  KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
>  KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector)
>
> --
> 2.8.0.rc3.226.g39d4020


I withdraw this patch.

From off-list discussion:

"-mno-sse alone should disable all SSE/AVX instructions. If not,
please file a GCC bug report".

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] x86: prevent gcc from emitting SSE into boot code Dmitry Vyukov <dvyukov@google.com> - 2016-06-22 19:40 +0200
  Re: [PATCH] x86: prevent gcc from emitting SSE into boot code Dmitry Vyukov <dvyukov@google.com> - 2016-06-22 22:20 +0200

csiph-web