From: jsg Date: Wed, 28 Feb 2024 00:53:16 +0000 (+0000) Subject: identify MTE; ok kettenis@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6af712bfd6e0c7b6a027768f7ed1b5606dfce4c7;p=openbsd identify MTE; ok kettenis@ --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 5e8f48ab75d..bf5b41a635b 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.105 2024/02/23 21:52:12 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.106 2024/02/28 00:53:16 jsg Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -766,7 +766,7 @@ cpu_identify(struct cpu_info *ci) } /* - * ID_AA64PFR0 + * ID_AA64PFR1 */ id = READ_SPECIALREG(id_aa64pfr1_el1); @@ -782,6 +782,11 @@ cpu_identify(struct cpu_info *ci) if (ID_AA64PFR1_SBSS(id) >= ID_AA64PFR1_SBSS_PSTATE_MSR) printf("+MSR"); + if (ID_AA64PFR1_MTE(id) >= ID_AA64PFR1_MTE_IMPL) { + printf("%sMTE", sep); + sep = ","; + } + #ifdef CPU_DEBUG id = READ_SPECIALREG(id_aa64afr0_el1); printf("\nID_AA64AFR0_EL1: 0x%016llx", id);