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 Modify CPUID Fn0000000a %ebx's string. ...



details:   https://anonhg.NetBSD.org/src/rev/26e7c99f7ba8
branches:  trunk
changeset: 366791:26e7c99f7ba8
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jun 15 16:25:33 2022 +0000

description:
Modify CPUID Fn0000000a %ebx's string. Add new string for %ecx.

diffstat:

 sys/arch/x86/include/specialreg.h |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 119f16640c7b -r 26e7c99f7ba8 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Wed Jun 15 15:54:40 2022 +0000
+++ b/sys/arch/x86/include/specialreg.h Wed Jun 15 16:25:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.190 2022/06/13 06:22:31 msaitoh Exp $ */
+/*     $NetBSD: specialreg.h,v 1.191 2022/06/15 16:25:33 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2014-2020 The NetBSD Foundation, Inc.
@@ -560,8 +560,13 @@
 #define CPUID_PERF_TOPDOWNSLOT __BIT(7)       /* No top-down slots */
 
 #define CPUID_PERF_FLAGS1      "\177\20"                                     \
-       "b\0CORECYCL\0" "b\1INSTRETRY\0" "b\2REFCYCL\0" "b\3LLCREF\0"         \
-       "b\4LLCMISS\0" "b\5BRINSRETR\0" "b\6BRMISPRRETR\0" "b\7TOPDOWNSLOT\0"
+       "b\0CORECYCL\0" "b\1INST\0"     "b\2REFCYCL\0"  "b\3LLCREF\0"         \
+       "b\4LLCMISS\0"  "b\5BRINST\0"   "b\6BRMISPR\0"  "b\7TOPDOWNSLOT\0"
+
+/* %ecx */
+
+#define CPUID_PERF_FLAGS2      "\177\20"                                     \
+       "b\0INST\0" "b\1CLK_CORETHREAD\0" "b\2CLK_REF_TSC\0" "b\3TOPDOWNSLOT\0"
 
 /* %edx */
 #define CPUID_PERF_NFFPC       __BITS(4, 0)   /* Num of fixed-funct perfcnt */



Home | Main Index | Thread Index | Old Index