diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-08-16 06:14:25 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-08-19 05:03:31 -0700 |
commit | 708b3600d043e5885ed25464189a88590feeaac9 (patch) | |
tree | 71412bd5b08731b92827e815ab5cb2fa5319acc6 | |
parent | eef9bf4ca8d90a1751bc4bff03722ee68999eb8e (diff) | |
download | gcc-708b3600d043e5885ed25464189a88590feeaac9.zip gcc-708b3600d043e5885ed25464189a88590feeaac9.tar.gz gcc-708b3600d043e5885ed25464189a88590feeaac9.tar.bz2 |
x86: Detect Rocket Lake and Alder Lake
From arch/x86/include/asm/intel-family.h on Linux kernel master branch:
#define INTEL_FAM6_ROCKETLAKE 0xA7
#define INTEL_FAM6_ALDERLAKE 0x97
* common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
Lake and Alder Lake.
-rw-r--r-- | gcc/common/config/i386/cpuinfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index b14c7c6..12237e2 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -387,6 +387,8 @@ get_intel_cpu (struct __processor_model *cpu_model, case 0xa5: case 0xa6: /* Comet Lake. */ + case 0xa7: + /* Rocket Lake. */ cpu = "skylake"; CHECK___builtin_cpu_is ("corei7"); CHECK___builtin_cpu_is ("skylake"); @@ -456,6 +458,14 @@ get_intel_cpu (struct __processor_model *cpu_model, cpu_model->__cpu_type = INTEL_COREI7; cpu_model->__cpu_subtype = INTEL_COREI7_TIGERLAKE; break; + case 0x97: + /* Alder Lake. */ + cpu = "alderlake"; + CHECK___builtin_cpu_is ("corei7"); + CHECK___builtin_cpu_is ("alderlake"); + cpu_model->__cpu_type = INTEL_COREI7; + cpu_model->__cpu_subtype = INTEL_COREI7_ALDERLAKE; + break; case 0x8f: /* Sapphire Rapids. */ cpu = "sapphirerapids"; |