forked from OSchip/llvm-project
Remove xgene1 from host detection
This is not a supported mcpu tuning option. We should treat it as "generic" variant. Also, add record for cortex-a35. llvm-svn: 300003
This commit is contained in:
parent
6c973d647f
commit
0b5eed24c5
|
@ -189,6 +189,7 @@ StringRef sys::detail::getHostCPUNameForARM(
|
|||
.Case("0xc20", "cortex-m0")
|
||||
.Case("0xc23", "cortex-m3")
|
||||
.Case("0xc24", "cortex-m4")
|
||||
.Case("0xd04", "cortex-a35")
|
||||
.Case("0xd03", "cortex-a53")
|
||||
.Case("0xd07", "cortex-a57")
|
||||
.Case("0xd08", "cortex-a72")
|
||||
|
@ -196,17 +197,6 @@ StringRef sys::detail::getHostCPUNameForARM(
|
|||
.Default("generic");
|
||||
}
|
||||
|
||||
if (Implementer == "0x50") // Applied Micro Circuits Corporation (APM).
|
||||
// Look for the CPU part line.
|
||||
for (unsigned I = 0, E = Lines.size(); I != E; ++I)
|
||||
if (Lines[I].startswith("CPU part"))
|
||||
// The CPU part is a 3 digit hexadecimal number with a 0x prefix. The
|
||||
// values correspond to the "Part number" in the CP15/c0 register. The
|
||||
// contents are specified in the various processor manuals.
|
||||
return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
|
||||
.Case("0x000", "xgene1")
|
||||
.Default("generic");
|
||||
|
||||
if (Implementer == "0x51") // Qualcomm Technologies, Inc.
|
||||
// Look for the CPU part line.
|
||||
for (unsigned I = 0, E = Lines.size(); I != E; ++I)
|
||||
|
|
Loading…
Reference in New Issue