llvm-toolchain/debian/patches/arm32-defaults.diff
Matthias Klose 9aa5a6b013 * 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.
2023-12-05 09:43:34 +01:00

15 lines
396 B
Diff

--- 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";
}
}