diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-01-09 20:00:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-06 20:13:28 +0000 | 
| commit | 1db9f3b21e39176dd5b67cf8ac378633b172463e (patch) | |
| tree | 71bca5bd62db6368f0738c961b2d87e14c8cb602 /contrib/llvm-project/llvm/lib/TargetParser/Host.cpp | |
| parent | 412fa3436f0d1fe4a7e5e3b66783aa40f599125e (diff) | |
| parent | aca2e42c67292825f835f094eb0c4df5ce6013db (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/TargetParser/Host.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/TargetParser/Host.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp b/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp index 2e08c7b12d9d..32941c013c66 100644 --- a/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp +++ b/contrib/llvm-project/llvm/lib/TargetParser/Host.cpp @@ -1524,7 +1524,8 @@ StringRef sys::getHostCPUName() {    // Use processor id to detect cpu name.    uint32_t processor_id;    __asm__("cpucfg %[prid], $zero\n\t" : [prid] "=r"(processor_id)); -  switch (processor_id & 0xff00) { +  // Refer PRID_SERIES_MASK in linux kernel: arch/loongarch/include/asm/cpu.h. +  switch (processor_id & 0xf000) {    case 0xc000: // Loongson 64bit, 4-issue      return "la464";    // TODO: Others.  | 
