From 2dc54202fe275361804efdd1e4cd0a36cb267a37 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 29 May 2023 02:26:14 +0000 Subject: [PATCH] recognise Cortex-A520 (Hayes), Cortex-A720 (Hunter), Cortex-X4 (Hunter-ELP) --- sys/arch/arm64/arm64/cpu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 83662796009..c6fe11439fe 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -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 @@ -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" }, -- 2.20.1