* Set the cpu defaults for the ARM32 architectures:

- armel: arm926ej-s. Addresses: #1056115.
    - armhf: cortex-a8.
    Thanks to Arnd Bergmann and Ard Biesheuvel for the fixes.
This commit is contained in:
Matthias Klose 2023-12-05 09:43:34 +01:00
parent 35cc1319c6
commit 9aa5a6b013
3 changed files with 20 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,7 +1,10 @@
llvm-toolchain-snapshot (1:18~++20231203101651+e3b3c91dd0bb-1~exp2) UNRELEASED; urgency=medium llvm-toolchain-snapshot (1:18~++20231203101651+e3b3c91dd0bb-1~exp2) UNRELEASED; urgency=medium
* revert debian/patches/arm32-defaults.diff for causing [ Matthias Klose ]
https://lore.kernel.org/lkml/20231204225148.GA2094126@dev-arch.thelio-3990X/T/ * Set the cpu defaults for the ARM32 architectures:
- armel: arm926ej-s. Addresses: #1056115.
- armhf: cortex-a8.
Thanks to Arnd Bergmann and Ard Biesheuvel for the fixes.
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 05 Dec 2023 07:43:43 +0100 -- Sylvestre Ledru <sylvestre@debian.org> Tue, 05 Dec 2023 07:43:43 +0100

14
debian/patches/arm32-defaults.diff vendored Normal file
View File

@ -0,0 +1,14 @@
--- a/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ b/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -637,9 +637,9 @@ StringRef ARM::getARMCPUForArch(const ll
case llvm::Triple::EABIHF:
case llvm::Triple::GNUEABIHF:
case llvm::Triple::MuslEABIHF:
- return "cortex-a7";
+ return "cortex-a8";
default:
- return "arm7tdmi";
+ return "arm926ej-s";
}
}

View File

@ -147,3 +147,4 @@ bolt-disable-emit-relocs.patch
link-grpc.diff link-grpc.diff
libclang-major-version-only.diff libclang-major-version-only.diff
D148945-revert.diff D148945-revert.diff
arm32-defaults.diff