From: kettenis Date: Sun, 17 Mar 2024 13:05:40 +0000 (+0000) Subject: The feature is called SSBS instead of SBSS. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e00f38ee8c8e6dbcc4f850634e9dc8ac048560f4;p=openbsd The feature is called SSBS instead of SBSS. --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 47f86cf826c..354b05299af 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.110 2024/03/16 09:15:04 jsg Exp $ */ +/* $OpenBSD: cpu.c,v 1.111 2024/03/17 13:05:40 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -821,11 +821,11 @@ cpu_identify(struct cpu_info *ci) sep = ","; } - if (ID_AA64PFR1_SBSS(id) >= ID_AA64PFR1_SBSS_PSTATE) { - printf("%sSBSS", sep); + if (ID_AA64PFR1_SSBS(id) >= ID_AA64PFR1_SSBS_PSTATE) { + printf("%sSSBS", sep); sep = ","; } - if (ID_AA64PFR1_SBSS(id) >= ID_AA64PFR1_SBSS_PSTATE_MSR) + if (ID_AA64PFR1_SSBS(id) >= ID_AA64PFR1_SSBS_PSTATE_MSR) printf("+MSR"); if (ID_AA64PFR1_MTE(id) >= ID_AA64PFR1_MTE_IMPL) { diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index ba1fcf72fc4..7ae80ca6b83 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.87 2024/03/13 14:57:08 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.88 2024/03/17 13:05:40 kettenis Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * Copyright (c) 2021 Mark Kettenis @@ -367,7 +367,7 @@ cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, case CPU_ID_AA64PFR1: value = 0; value |= cpu_id_aa64pfr1 & ID_AA64PFR1_BT_MASK; - value |= cpu_id_aa64pfr1 & ID_AA64PFR1_SBSS_MASK; + value |= cpu_id_aa64pfr1 & ID_AA64PFR1_SSBS_MASK; return sysctl_rdquad(oldp, oldlenp, newp, value); case CPU_ID_AA64ISAR2: case CPU_ID_AA64MMFR0: diff --git a/sys/arch/arm64/include/armreg.h b/sys/arch/arm64/include/armreg.h index 59983aa13e0..2612142d3f5 100644 --- a/sys/arch/arm64/include/armreg.h +++ b/sys/arch/arm64/include/armreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: armreg.h,v 1.31 2024/03/05 18:42:20 kettenis Exp $ */ +/* $OpenBSD: armreg.h,v 1.32 2024/03/17 13:05:40 kettenis Exp $ */ /*- * Copyright (c) 2013, 2014 Andrew Turner * Copyright (c) 2015 The FreeBSD Foundation @@ -582,12 +582,12 @@ #define ID_AA64PFR1_BT(x) ((x) & ID_AA64PFR1_BT_MASK) #define ID_AA64PFR1_BT_NONE (0x0ULL << ID_AA64PFR1_BT_SHIFT) #define ID_AA64PFR1_BT_IMPL (0x1ULL << ID_AA64PFR1_BT_SHIFT) -#define ID_AA64PFR1_SBSS_SHIFT 4 -#define ID_AA64PFR1_SBSS_MASK (0xfULL << ID_AA64PFR1_SBSS_SHIFT) -#define ID_AA64PFR1_SBSS(x) ((x) & ID_AA64PFR1_SBSS_MASK) -#define ID_AA64PFR1_SBSS_NONE (0x0ULL << ID_AA64PFR1_SBSS_SHIFT) -#define ID_AA64PFR1_SBSS_PSTATE (0x1ULL << ID_AA64PFR1_SBSS_SHIFT) -#define ID_AA64PFR1_SBSS_PSTATE_MSR (0x2ULL << ID_AA64PFR1_SBSS_SHIFT) +#define ID_AA64PFR1_SSBS_SHIFT 4 +#define ID_AA64PFR1_SSBS_MASK (0xfULL << ID_AA64PFR1_SSBS_SHIFT) +#define ID_AA64PFR1_SSBS(x) ((x) & ID_AA64PFR1_SSBS_MASK) +#define ID_AA64PFR1_SSBS_NONE (0x0ULL << ID_AA64PFR1_SSBS_SHIFT) +#define ID_AA64PFR1_SSBS_PSTATE (0x1ULL << ID_AA64PFR1_SSBS_SHIFT) +#define ID_AA64PFR1_SSBS_PSTATE_MSR (0x2ULL << ID_AA64PFR1_SSBS_SHIFT) #define ID_AA64PFR1_MTE_SHIFT 8 #define ID_AA64PFR1_MTE_MASK (0xfULL << ID_AA64PFR1_MTE_SHIFT) #define ID_AA64PFR1_MTE(x) ((x) & ID_AA64PFR1_MTE_MASK)