Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/include It seems that AMD zen2's CPUID 0x800000...
details: https://anonhg.NetBSD.org/src/rev/30b5ed74cfbe
branches: trunk
changeset: 457904:30b5ed74cfbe
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jul 24 10:45:47 2019 +0000
description:
It seems that AMD zen2's CPUID 0x80000006 leaf's spec has changed.
The EDX register's acsociativity field has 9. In the latest available document,
it's a reserved value. I have no access to zen2's document, but many websites
say that the acsociativity is 16. Add it.
diffstat:
sys/arch/x86/include/cacheinfo.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 8049965d9ac3 -r 30b5ed74cfbe sys/arch/x86/include/cacheinfo.h
--- a/sys/arch/x86/include/cacheinfo.h Wed Jul 24 10:22:04 2019 +0000
+++ b/sys/arch/x86/include/cacheinfo.h Wed Jul 24 10:45:47 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cacheinfo.h,v 1.26 2018/03/12 07:35:45 msaitoh Exp $ */
+/* $NetBSD: cacheinfo.h,v 1.27 2019/07/24 10:45:47 msaitoh Exp $ */
#ifndef _X86_CACHEINFO_H_
#define _X86_CACHEINFO_H_
@@ -362,6 +362,7 @@
__CI_TBL(0, 0x04, 4, 0, 0, NULL), \
__CI_TBL(0, 0x06, 8, 0, 0, NULL), \
__CI_TBL(0, 0x08, 16, 0, 0, NULL), \
+__CI_TBL(0, 0x09, 16, 0, 0, NULL), \
__CI_TBL(0, 0x0a, 32, 0, 0, NULL), \
__CI_TBL(0, 0x0b, 48, 0, 0, NULL), \
__CI_TBL(0, 0x0c, 64, 0, 0, NULL), \
Home |
Main Index |
Thread Index |
Old Index