recognise Cortex-A520 (Hayes), Cortex-A720 (Hunter), Cortex-X4 (Hunter-ELP)
authorjsg <jsg@openbsd.org>
Mon, 29 May 2023 02:26:14 +0000 (02:26 +0000)
committerjsg <jsg@openbsd.org>
Mon, 29 May 2023 02:26:14 +0000 (02:26 +0000)
sys/arch/arm64/arm64/cpu.c

index 8366279..c6fe114 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: cpu.c,v 1.90 2023/05/17 21:45:41 kettenis Exp $       */
+/*     $OpenBSD: cpu.c,v 1.91 2023/05/29 02:26:14 jsg Exp $    */
 
 /*
  * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
@@ -79,6 +79,9 @@
 #define CPU_PART_CORTEX_A715   0xd4d
 #define CPU_PART_CORTEX_X3     0xd4e
 #define CPU_PART_NEOVERSE_V2   0xd4f
+#define CPU_PART_CORTEX_A520   0xd80
+#define CPU_PART_CORTEX_A720   0xd81
+#define CPU_PART_CORTEX_X4     0xd82
 
 /* Cavium */
 #define CPU_PART_THUNDERX_T88  0x0a1
@@ -139,12 +142,15 @@ struct cpu_cores cpu_cores_arm[] = {
        { CPU_PART_CORTEX_A78AE, "Cortex-A78AE" },
        { CPU_PART_CORTEX_A78C, "Cortex-A78C" },
        { CPU_PART_CORTEX_A510, "Cortex-A510" },
+       { CPU_PART_CORTEX_A520, "Cortex-A520" },
        { CPU_PART_CORTEX_A710, "Cortex-A710" },
        { CPU_PART_CORTEX_A715, "Cortex-A715" },
+       { CPU_PART_CORTEX_A720, "Cortex-A720" },
        { CPU_PART_CORTEX_X1, "Cortex-X1" },
        { CPU_PART_CORTEX_X1C, "Cortex-X1C" },
        { CPU_PART_CORTEX_X2, "Cortex-X2" },
        { CPU_PART_CORTEX_X3, "Cortex-X3" },
+       { CPU_PART_CORTEX_X4, "Cortex-X4" },
        { CPU_PART_NEOVERSE_E1, "Neoverse E1" },
        { CPU_PART_NEOVERSE_N1, "Neoverse N1" },
        { CPU_PART_NEOVERSE_N2, "Neoverse N2" },