Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: arch/um: Disable FP/SIMD instruction to match x86
commit 8849818 upstream. The kernel disables all SSE and similar FP/SIMD instructions on x86-based architectures (partly because we shouldn't be using floats in the kernel, and partly to avoid the need for stack alignment, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383 ) UML does not do the same thing, which isn't in itself a problem, but does add to the list of differences between UML and "normal" x86 builds. In addition, there was a crash bug with LLVM < 15 / rustc < 1.65 when building with SSE, so disabling it fixes rust builds with earlier compiler versions, see: Rust-for-Linux/linux#881 Signed-off-by: David Gow <[email protected]> Reviewed-by: Sergio González Collado <[email protected]> Signed-off-by: Richard Weinberger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information