diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-03-04 18:32:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-03-04 18:32:53 +0000 |
commit | 28dd86f3fe0273817440d85982a5738e401577fc (patch) | |
tree | 225f636e5ca276a75bcd51f75a099886977c21c4 /sys | |
parent | 15f6f9b3e13b60dead4046d3b17dde3635030fad (diff) |
Print feature that indicates a CPU core supports 16-bit ASIDs.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/arm64/cpu.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 21f841a7e25..719bcf1431d 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.48 2021/02/21 14:55:16 tobhe Exp $ */ +/* $OpenBSD: cpu.c,v 1.49 2021/03/04 18:32:52 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com> @@ -400,6 +400,18 @@ cpu_identify(struct cpu_info *ci) } /* + * ID_AA64MMFR0 + * + * We only print ASIDBits for now. + */ + id = READ_SPECIALREG(id_aa64mmfr0_el1); + + if (ID_AA64MMFR0_ASID_BITS(id) == ID_AA64MMFR0_ASID_BITS_16) { + printf("%sASID16", sep); + sep = ","; + } + + /* * ID_AA64MMFR1 * * We omit printing virtualization related fields like XNX, VH |