diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-28 00:53:17 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-28 00:53:17 +0000 |
commit | 5c4535e15493db2e43af7db8e785b9edaeb8b482 (patch) | |
tree | 67645bcc7f2c70a42596d5c6d0beac6837c76d8a | |
parent | bab9d2ee40eb34e4075d65a44a1c5565bcf5e96b (diff) |
identify MTE; ok kettenis@
-rw-r--r-- | sys/arch/arm64/arm64/cpu.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <drahn@dalerahn.com> @@ -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); |