public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] x86: Detect Rocket Lake and Alder Lake
@ 2020-08-16 13:17 H.J. Lu
  2020-08-19 10:46 ` Kirill Yukhin
  2020-08-25 19:40 ` Jeff Law
  0 siblings, 2 replies; 3+ messages in thread
From: H.J. Lu @ 2020-08-16 13:17 UTC (permalink / raw)
  To: gcc-patches

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.
---
 gcc/common/config/i386/cpuinfo.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h
index b14c7c668da..12237e2f449 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";
-- 
2.26.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86: Detect Rocket Lake and Alder Lake
  2020-08-16 13:17 [PATCH] x86: Detect Rocket Lake and Alder Lake H.J. Lu
@ 2020-08-19 10:46 ` Kirill Yukhin
  2020-08-25 19:40 ` Jeff Law
  1 sibling, 0 replies; 3+ messages in thread
From: Kirill Yukhin @ 2020-08-19 10:46 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches

Hello,

On 16 авг 06:17, H.J. Lu via Gcc-patches wrote:
> 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.

Your patch is OK for trunk.

--
K

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86: Detect Rocket Lake and Alder Lake
  2020-08-16 13:17 [PATCH] x86: Detect Rocket Lake and Alder Lake H.J. Lu
  2020-08-19 10:46 ` Kirill Yukhin
@ 2020-08-25 19:40 ` Jeff Law
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Law @ 2020-08-25 19:40 UTC (permalink / raw)
  To: H.J. Lu, gcc-patches

On Sun, 2020-08-16 at 06:17 -0700, H.J. Lu via Gcc-patches wrote:
> 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.
OK
jeff
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-25 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 13:17 [PATCH] x86: Detect Rocket Lake and Alder Lake H.J. Lu
2020-08-19 10:46 ` Kirill Yukhin
2020-08-25 19:40 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).