-/* $OpenBSD: cpu.c,v 1.44 2020/12/04 21:18:09 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.45 2021/01/26 23:02:18 kettenis Exp $ */
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
#define CPU_IMPL_ARM 0x41
#define CPU_IMPL_CAVIUM 0x43
#define CPU_IMPL_AMCC 0x50
+#define CPU_IMPL_APPLE 0x61
#define CPU_PART_CORTEX_A34 0xd02
#define CPU_PART_CORTEX_A53 0xd03
#define CPU_PART_X_GENE 0x000
+#define CPU_PART_ICESTORM 0x022
+
#define CPU_IMPL(midr) (((midr) >> 24) & 0xff)
#define CPU_PART(midr) (((midr) >> 4) & 0xfff)
#define CPU_VAR(midr) (((midr) >> 20) & 0xf)
{ 0, NULL },
};
+struct cpu_cores cpu_cores_apple[] = {
+ { CPU_PART_ICESTORM, "Icestorm" },
+ { 0, NULL },
+};
+
/* arm cores makers */
const struct implementers {
int id;
{ CPU_IMPL_ARM, "ARM", cpu_cores_arm },
{ CPU_IMPL_CAVIUM, "Cavium", cpu_cores_cavium },
{ CPU_IMPL_AMCC, "Applied Micro", cpu_cores_amcc },
+ { CPU_IMPL_APPLE, "Apple", cpu_cores_apple },
{ 0, NULL },
};