2 MSR Definitions for the Intel(R) Core(TM) 2 Processor Family.
4 Provides defines for Machine Specific Registers(MSR) indexes. Data structures
5 are provided for MSRs that contain one or more bit fields. If the MSR value
6 returned is a single 32-bit or 64-bit value, then a data structure is not
9 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 September 2016, Chapter 35 Model-Specific-Registers (MSR), Section 35.2.
24 #ifndef __CORE2_MSR_H__
25 #define __CORE2_MSR_H__
27 #include <Register/ArchitecturalMsr.h>
30 Shared. Model Specific Platform ID (R).
32 @param ECX MSR_CORE2_PLATFORM_ID (0x00000017)
33 @param EAX Lower 32-bits of MSR value.
34 Described by the type MSR_CORE2_PLATFORM_ID_REGISTER.
35 @param EDX Upper 32-bits of MSR value.
36 Described by the type MSR_CORE2_PLATFORM_ID_REGISTER.
40 MSR_CORE2_PLATFORM_ID_REGISTER Msr;
42 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PLATFORM_ID);
44 @note MSR_CORE2_PLATFORM_ID is defined as MSR_PLATFORM_ID in SDM.
46 #define MSR_CORE2_PLATFORM_ID 0x00000017
49 MSR information returned for MSR index #MSR_CORE2_PLATFORM_ID
53 /// Individual bit fields
58 /// [Bits 12:8] Maximum Qualified Ratio (R) The maximum allowed bus ratio.
60 UINT32 MaximumQualifiedRatio
:5;
64 /// [Bits 52:50] See Table 35-2.
70 /// All bit fields as a 64-bit value
73 } MSR_CORE2_PLATFORM_ID_REGISTER
;
77 Shared. Processor Hard Power-On Configuration (R/W) Enables and disables
78 processor features; (R) indicates current processor configuration.
80 @param ECX MSR_CORE2_EBL_CR_POWERON (0x0000002A)
81 @param EAX Lower 32-bits of MSR value.
82 Described by the type MSR_CORE2_EBL_CR_POWERON_REGISTER.
83 @param EDX Upper 32-bits of MSR value.
84 Described by the type MSR_CORE2_EBL_CR_POWERON_REGISTER.
88 MSR_CORE2_EBL_CR_POWERON_REGISTER Msr;
90 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_EBL_CR_POWERON);
91 AsmWriteMsr64 (MSR_CORE2_EBL_CR_POWERON, Msr.Uint64);
93 @note MSR_CORE2_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.
95 #define MSR_CORE2_EBL_CR_POWERON 0x0000002A
98 MSR information returned for MSR index #MSR_CORE2_EBL_CR_POWERON
102 /// Individual bit fields
107 /// [Bit 1] Data Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
108 /// Note: Not all processor implements R/W.
110 UINT32 DataErrorCheckingEnable
:1;
112 /// [Bit 2] Response Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
113 /// Note: Not all processor implements R/W.
115 UINT32 ResponseErrorCheckingEnable
:1;
117 /// [Bit 3] MCERR# Drive Enable (R/W) 1 = Enabled; 0 = Disabled Note: Not
118 /// all processor implements R/W.
120 UINT32 MCERR_DriveEnable
:1;
122 /// [Bit 4] Address Parity Enable (R/W) 1 = Enabled; 0 = Disabled Note:
123 /// Not all processor implements R/W.
125 UINT32 AddressParityEnable
:1;
129 /// [Bit 7] BINIT# Driver Enable (R/W) 1 = Enabled; 0 = Disabled Note: Not
130 /// all processor implements R/W.
132 UINT32 BINIT_DriverEnable
:1;
134 /// [Bit 8] Output Tri-state Enabled (R/O) 1 = Enabled; 0 = Disabled.
136 UINT32 OutputTriStateEnable
:1;
138 /// [Bit 9] Execute BIST (R/O) 1 = Enabled; 0 = Disabled.
140 UINT32 ExecuteBIST
:1;
142 /// [Bit 10] MCERR# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled.
144 UINT32 MCERR_ObservationEnabled
:1;
146 /// [Bit 11] Intel TXT Capable Chipset. (R/O) 1 = Present; 0 = Not Present.
148 UINT32 IntelTXTCapableChipset
:1;
150 /// [Bit 12] BINIT# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled.
152 UINT32 BINIT_ObservationEnabled
:1;
155 /// [Bit 14] 1 MByte Power on Reset Vector (R/O) 1 = 1 MByte; 0 = 4 GBytes.
157 UINT32 ResetVector
:1;
160 /// [Bits 17:16] APIC Cluster ID (R/O).
162 UINT32 APICClusterID
:2;
164 /// [Bit 18] N/2 Non-Integer Bus Ratio (R/O) 0 = Integer ratio; 1 =
165 /// Non-integer ratio.
167 UINT32 NonIntegerBusRatio
:1;
170 /// [Bits 21:20] Symmetric Arbitration ID (R/O).
172 UINT32 SymmetricArbitrationID
:2;
174 /// [Bits 26:22] Integer Bus Frequency Ratio (R/O).
176 UINT32 IntegerBusFrequencyRatio
:5;
181 /// All bit fields as a 32-bit value
185 /// All bit fields as a 64-bit value
188 } MSR_CORE2_EBL_CR_POWERON_REGISTER
;
192 Unique. Control Features in Intel 64Processor (R/W) See Table 35-2.
194 @param ECX MSR_CORE2_FEATURE_CONTROL (0x0000003A)
195 @param EAX Lower 32-bits of MSR value.
196 Described by the type MSR_CORE2_FEATURE_CONTROL_REGISTER.
197 @param EDX Upper 32-bits of MSR value.
198 Described by the type MSR_CORE2_FEATURE_CONTROL_REGISTER.
202 MSR_CORE2_FEATURE_CONTROL_REGISTER Msr;
204 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_FEATURE_CONTROL);
205 AsmWriteMsr64 (MSR_CORE2_FEATURE_CONTROL, Msr.Uint64);
207 @note MSR_CORE2_FEATURE_CONTROL is defined as MSR_FEATURE_CONTROL in SDM.
209 #define MSR_CORE2_FEATURE_CONTROL 0x0000003A
212 MSR information returned for MSR index #MSR_CORE2_FEATURE_CONTROL
216 /// Individual bit fields
221 /// [Bit 3] Unique. SMRR Enable (R/WL) When this bit is set and the lock
222 /// bit is set makes the SMRR_PHYS_BASE and SMRR_PHYS_MASK registers read
223 /// visible and writeable while in SMM.
230 /// All bit fields as a 32-bit value
234 /// All bit fields as a 64-bit value
237 } MSR_CORE2_FEATURE_CONTROL_REGISTER
;
241 Unique. Last Branch Record n From IP (R/W) One of four pairs of last branch
242 record registers on the last branch record stack. The From_IP part of the
243 stack contains pointers to the source instruction. See also: - Last Branch
244 Record Stack TOS at 1C9H - Section 17.5.
246 @param ECX MSR_CORE2_LASTBRANCH_n_FROM_IP
247 @param EAX Lower 32-bits of MSR value.
248 @param EDX Upper 32-bits of MSR value.
254 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_0_FROM_IP);
255 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_0_FROM_IP, Msr);
257 @note MSR_CORE2_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.
258 MSR_CORE2_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.
259 MSR_CORE2_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.
260 MSR_CORE2_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.
263 #define MSR_CORE2_LASTBRANCH_0_FROM_IP 0x00000040
264 #define MSR_CORE2_LASTBRANCH_1_FROM_IP 0x00000041
265 #define MSR_CORE2_LASTBRANCH_2_FROM_IP 0x00000042
266 #define MSR_CORE2_LASTBRANCH_3_FROM_IP 0x00000043
271 Unique. Last Branch Record n To IP (R/W) One of four pairs of last branch
272 record registers on the last branch record stack. This To_IP part of the
273 stack contains pointers to the destination instruction.
275 @param ECX MSR_CORE2_LASTBRANCH_n_TO_IP
276 @param EAX Lower 32-bits of MSR value.
277 @param EDX Upper 32-bits of MSR value.
283 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_0_TO_IP);
284 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_0_TO_IP, Msr);
286 @note MSR_CORE2_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.
287 MSR_CORE2_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.
288 MSR_CORE2_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.
289 MSR_CORE2_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.
292 #define MSR_CORE2_LASTBRANCH_0_TO_IP 0x00000060
293 #define MSR_CORE2_LASTBRANCH_1_TO_IP 0x00000061
294 #define MSR_CORE2_LASTBRANCH_2_TO_IP 0x00000062
295 #define MSR_CORE2_LASTBRANCH_3_TO_IP 0x00000063
300 Unique. System Management Mode Base Address register (WO in SMM)
301 Model-specific implementation of SMRR-like interface, read visible and write
304 @param ECX MSR_CORE2_SMRR_PHYSBASE (0x000000A0)
305 @param EAX Lower 32-bits of MSR value.
306 Described by the type MSR_CORE2_SMRR_PHYSBASE_REGISTER.
307 @param EDX Upper 32-bits of MSR value.
308 Described by the type MSR_CORE2_SMRR_PHYSBASE_REGISTER.
312 MSR_CORE2_SMRR_PHYSBASE_REGISTER Msr;
315 AsmWriteMsr64 (MSR_CORE2_SMRR_PHYSBASE, Msr.Uint64);
317 @note MSR_CORE2_SMRR_PHYSBASE is defined as MSR_SMRR_PHYSBASE in SDM.
319 #define MSR_CORE2_SMRR_PHYSBASE 0x000000A0
322 MSR information returned for MSR index #MSR_CORE2_SMRR_PHYSBASE
326 /// Individual bit fields
331 /// [Bits 31:12] PhysBase. SMRR physical Base Address.
337 /// All bit fields as a 32-bit value
341 /// All bit fields as a 64-bit value
344 } MSR_CORE2_SMRR_PHYSBASE_REGISTER
;
348 Unique. System Management Mode Physical Address Mask register (WO in SMM)
349 Model-specific implementation of SMRR-like interface, read visible and write
352 @param ECX MSR_CORE2_SMRR_PHYSMASK (0x000000A1)
353 @param EAX Lower 32-bits of MSR value.
354 Described by the type MSR_CORE2_SMRR_PHYSMASK_REGISTER.
355 @param EDX Upper 32-bits of MSR value.
356 Described by the type MSR_CORE2_SMRR_PHYSMASK_REGISTER.
360 MSR_CORE2_SMRR_PHYSMASK_REGISTER Msr;
363 AsmWriteMsr64 (MSR_CORE2_SMRR_PHYSMASK, Msr.Uint64);
365 @note MSR_CORE2_SMRR_PHYSMASK is defined as MSR_SMRR_PHYSMASK in SDM.
367 #define MSR_CORE2_SMRR_PHYSMASK 0x000000A1
370 MSR information returned for MSR index #MSR_CORE2_SMRR_PHYSMASK
374 /// Individual bit fields
379 /// [Bit 11] Valid. Physical address base and range mask are valid.
383 /// [Bits 31:12] PhysMask. SMRR physical address range mask.
389 /// All bit fields as a 32-bit value
393 /// All bit fields as a 64-bit value
396 } MSR_CORE2_SMRR_PHYSMASK_REGISTER
;
400 Shared. Scalable Bus Speed(RO) This field indicates the intended scalable
401 bus clock speed for processors based on Intel Core microarchitecture:.
403 @param ECX MSR_CORE2_FSB_FREQ (0x000000CD)
404 @param EAX Lower 32-bits of MSR value.
405 Described by the type MSR_CORE2_FSB_FREQ_REGISTER.
406 @param EDX Upper 32-bits of MSR value.
407 Described by the type MSR_CORE2_FSB_FREQ_REGISTER.
411 MSR_CORE2_FSB_FREQ_REGISTER Msr;
413 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_FSB_FREQ);
415 @note MSR_CORE2_FSB_FREQ is defined as MSR_FSB_FREQ in SDM.
417 #define MSR_CORE2_FSB_FREQ 0x000000CD
420 MSR information returned for MSR index #MSR_CORE2_FSB_FREQ
424 /// Individual bit fields
428 /// [Bits 2:0] - Scalable Bus Speed
429 /// 101B: 100 MHz (FSB 400)
430 /// 001B: 133 MHz (FSB 533)
431 /// 011B: 167 MHz (FSB 667)
432 /// 010B: 200 MHz (FSB 800)
433 /// 000B: 267 MHz (FSB 1067)
434 /// 100B: 333 MHz (FSB 1333)
436 /// 133.33 MHz should be utilized if performing calculation with System
437 /// Bus Speed when encoding is 001B. 166.67 MHz should be utilized if
438 /// performing calculation with System Bus Speed when encoding is 011B.
439 /// 266.67 MHz should be utilized if performing calculation with System
440 /// Bus Speed when encoding is 000B. 333.33 MHz should be utilized if
441 /// performing calculation with System Bus Speed when encoding is 100B.
443 UINT32 ScalableBusSpeed
:3;
448 /// All bit fields as a 32-bit value
452 /// All bit fields as a 64-bit value
455 } MSR_CORE2_FSB_FREQ_REGISTER
;
461 @param ECX MSR_CORE2_BBL_CR_CTL3 (0x0000011E)
462 @param EAX Lower 32-bits of MSR value.
463 Described by the type MSR_CORE2_BBL_CR_CTL3_REGISTER.
464 @param EDX Upper 32-bits of MSR value.
465 Described by the type MSR_CORE2_BBL_CR_CTL3_REGISTER.
469 MSR_CORE2_BBL_CR_CTL3_REGISTER Msr;
471 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_BBL_CR_CTL3);
472 AsmWriteMsr64 (MSR_CORE2_BBL_CR_CTL3, Msr.Uint64);
474 @note MSR_CORE2_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.
476 #define MSR_CORE2_BBL_CR_CTL3 0x0000011E
479 MSR information returned for MSR index #MSR_CORE2_BBL_CR_CTL3
483 /// Individual bit fields
487 /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =
488 /// Indicates if the L2 is hardware-disabled.
490 UINT32 L2HardwareEnabled
:1;
493 /// [Bit 8] L2 Enabled (R/W) 1 = L2 cache has been initialized 0 =
494 /// Disabled (default) Until this bit is set the processor will not
495 /// respond to the WBINVD instruction or the assertion of the FLUSH# input.
500 /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.
502 UINT32 L2NotPresent
:1;
507 /// All bit fields as a 32-bit value
511 /// All bit fields as a 64-bit value
514 } MSR_CORE2_BBL_CR_CTL3_REGISTER
;
520 @param ECX MSR_CORE2_PERF_STATUS (0x00000198)
521 @param EAX Lower 32-bits of MSR value.
522 Described by the type MSR_CORE2_PERF_STATUS_REGISTER.
523 @param EDX Upper 32-bits of MSR value.
524 Described by the type MSR_CORE2_PERF_STATUS_REGISTER.
528 MSR_CORE2_PERF_STATUS_REGISTER Msr;
530 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PERF_STATUS);
531 AsmWriteMsr64 (MSR_CORE2_PERF_STATUS, Msr.Uint64);
533 @note MSR_CORE2_PERF_STATUS is defined as MSR_PERF_STATUS in SDM.
535 #define MSR_CORE2_PERF_STATUS 0x00000198
538 MSR information returned for MSR index #MSR_CORE2_PERF_STATUS
542 /// Individual bit fields
546 /// [Bits 15:0] Current Performance State Value.
548 UINT32 CurrentPerformanceStateValue
:16;
551 /// [Bit 31] XE Operation (R/O). If set, XE operation is enabled. Default
554 UINT32 XEOperation
:1;
557 /// [Bits 44:40] Maximum Bus Ratio (R/O) Indicates maximum bus ratio
558 /// configured for the processor.
560 UINT32 MaximumBusRatio
:5;
563 /// [Bit 46] Non-Integer Bus Ratio (R/O) Indicates non-integer bus ratio
564 /// is enabled. Applies processors based on Enhanced Intel Core
565 /// microarchitecture.
567 UINT32 NonIntegerBusRatio
:1;
571 /// All bit fields as a 64-bit value
574 } MSR_CORE2_PERF_STATUS_REGISTER
;
580 @param ECX MSR_CORE2_THERM2_CTL (0x0000019D)
581 @param EAX Lower 32-bits of MSR value.
582 Described by the type MSR_CORE2_THERM2_CTL_REGISTER.
583 @param EDX Upper 32-bits of MSR value.
584 Described by the type MSR_CORE2_THERM2_CTL_REGISTER.
588 MSR_CORE2_THERM2_CTL_REGISTER Msr;
590 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_THERM2_CTL);
591 AsmWriteMsr64 (MSR_CORE2_THERM2_CTL, Msr.Uint64);
593 @note MSR_CORE2_THERM2_CTL is defined as MSR_THERM2_CTL in SDM.
595 #define MSR_CORE2_THERM2_CTL 0x0000019D
598 MSR information returned for MSR index #MSR_CORE2_THERM2_CTL
602 /// Individual bit fields
607 /// [Bit 16] TM_SELECT (R/W) Mode of automatic thermal monitor: 1. =
608 /// Thermal Monitor 1 (thermally-initiated on-die modulation of the
609 /// stop-clock duty cycle) 2. = Thermal Monitor 2 (thermally-initiated
610 /// frequency transitions) If bit 3 of the IA32_MISC_ENABLE register is
611 /// cleared, TM_SELECT has no effect. Neither TM1 nor TM2 are enabled.
618 /// All bit fields as a 32-bit value
622 /// All bit fields as a 64-bit value
625 } MSR_CORE2_THERM2_CTL_REGISTER
;
629 Enable Misc. Processor Features (R/W) Allows a variety of processor
630 functions to be enabled and disabled.
632 @param ECX MSR_CORE2_IA32_MISC_ENABLE (0x000001A0)
633 @param EAX Lower 32-bits of MSR value.
634 Described by the type MSR_CORE2_IA32_MISC_ENABLE_REGISTER.
635 @param EDX Upper 32-bits of MSR value.
636 Described by the type MSR_CORE2_IA32_MISC_ENABLE_REGISTER.
640 MSR_CORE2_IA32_MISC_ENABLE_REGISTER Msr;
642 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_IA32_MISC_ENABLE);
643 AsmWriteMsr64 (MSR_CORE2_IA32_MISC_ENABLE, Msr.Uint64);
645 @note MSR_CORE2_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
647 #define MSR_CORE2_IA32_MISC_ENABLE 0x000001A0
650 MSR information returned for MSR index #MSR_CORE2_IA32_MISC_ENABLE
654 /// Individual bit fields
658 /// [Bit 0] Fast-Strings Enable See Table 35-2.
660 UINT32 FastStrings
:1;
663 /// [Bit 3] Unique. Automatic Thermal Control Circuit Enable (R/W) See
666 UINT32 AutomaticThermalControlCircuit
:1;
669 /// [Bit 7] Shared. Performance Monitoring Available (R) See Table 35-2.
671 UINT32 PerformanceMonitoring
:1;
674 /// [Bit 9] Hardware Prefetcher Disable (R/W) When set, disables the
675 /// hardware prefetcher operation on streams of data. When clear
676 /// (default), enables the prefetch queue. Disabling of the hardware
677 /// prefetcher may impact processor performance.
679 UINT32 HardwarePrefetcherDisable
:1;
681 /// [Bit 10] Shared. FERR# Multiplexing Enable (R/W) 1 = FERR# asserted by
682 /// the processor to indicate a pending break event within the processor 0
683 /// = Indicates compatible FERR# signaling behavior This bit must be set
684 /// to 1 to support XAPIC interrupt model usage.
688 /// [Bit 11] Shared. Branch Trace Storage Unavailable (RO) See Table 35-2.
692 /// [Bit 12] Shared. Processor Event Based Sampling Unavailable (RO) See
697 /// [Bit 13] Shared. TM2 Enable (R/W) When this bit is set (1) and the
698 /// thermal sensor indicates that the die temperature is at the
699 /// pre-determined threshold, the Thermal Monitor 2 mechanism is engaged.
700 /// TM2 will reduce the bus to core ratio and voltage according to the
701 /// value last written to MSR_THERM2_CTL bits 15:0.
702 /// When this bit is clear (0, default), the processor does not change
703 /// the VID signals or the bus to core ratio when the processor enters a
704 /// thermally managed state. The BIOS must enable this feature if the
705 /// TM2 feature flag (CPUID.1:ECX[8]) is set; if the TM2 feature flag is
706 /// not set, this feature is not supported and BIOS must not alter the
707 /// contents of the TM2 bit location. The processor is operating out of
708 /// specification if both this bit and the TM1 bit are set to 0.
713 /// [Bit 16] Shared. Enhanced Intel SpeedStep Technology Enable (R/W) See
719 /// [Bit 18] Shared. ENABLE MONITOR FSM (R/W) See Table 35-2.
723 /// [Bit 19] Shared. Adjacent Cache Line Prefetch Disable (R/W) When set
724 /// to 1, the processor fetches the cache line that contains data
725 /// currently required by the processor. When set to 0, the processor
726 /// fetches cache lines that comprise a cache line pair (128 bytes).
727 /// Single processor platforms should not set this bit. Server platforms
728 /// should set or clear this bit based on platform performance observed in
729 /// validation and testing. BIOS may contain a setup option that controls
730 /// the setting of this bit.
732 UINT32 AdjacentCacheLinePrefetchDisable
:1;
734 /// [Bit 20] Shared. Enhanced Intel SpeedStep Technology Select Lock
735 /// (R/WO) When set, this bit causes the following bits to become
736 /// read-only: - Enhanced Intel SpeedStep Technology Select Lock (this
737 /// bit), - Enhanced Intel SpeedStep Technology Enable bit. The bit must
738 /// be set before an Enhanced Intel SpeedStep Technology transition is
739 /// requested. This bit is cleared on reset.
744 /// [Bit 22] Shared. Limit CPUID Maxval (R/W) See Table 35-2.
746 UINT32 LimitCpuidMaxval
:1;
748 /// [Bit 23] Shared. xTPR Message Disable (R/W) See Table 35-2.
750 UINT32 xTPR_Message_Disable
:1;
754 /// [Bit 34] Unique. XD Bit Disable (R/W) See Table 35-2.
759 /// [Bit 37] Unique. DCU Prefetcher Disable (R/W) When set to 1, The DCU
760 /// L1 data cache prefetcher is disabled. The default value after reset is
761 /// 0. BIOS may write '1' to disable this feature. The DCU prefetcher is
762 /// an L1 data cache prefetcher. When the DCU prefetcher detects multiple
763 /// loads from the same line done within a time limit, the DCU prefetcher
764 /// assumes the next line will be required. The next line is prefetched in
765 /// to the L1 data cache from memory or L2.
767 UINT32 DCUPrefetcherDisable
:1;
769 /// [Bit 38] Shared. IDA Disable (R/W) When set to 1 on processors that
770 /// support IDA, the Intel Dynamic Acceleration feature (IDA) is disabled
771 /// and the IDA_Enable feature flag will be clear (CPUID.06H: EAX[1]=0).
772 /// When set to a 0 on processors that support IDA, CPUID.06H: EAX[1]
773 /// reports the processor's support of IDA is enabled. Note: the power-on
774 /// default value is used by BIOS to detect hardware support of IDA. If
775 /// power-on default value is 1, IDA is available in the processor. If
776 /// power-on default value is 0, IDA is not available.
780 /// [Bit 39] Unique. IP Prefetcher Disable (R/W) When set to 1, The IP
781 /// prefetcher is disabled. The default value after reset is 0. BIOS may
782 /// write '1' to disable this feature. The IP prefetcher is an L1 data
783 /// cache prefetcher. The IP prefetcher looks for sequential load history
784 /// to determine whether to prefetch the next expected data into the L1
785 /// cache from memory or L2.
787 UINT32 IPPrefetcherDisable
:1;
788 UINT32 Reserved10
:24;
791 /// All bit fields as a 64-bit value
794 } MSR_CORE2_IA32_MISC_ENABLE_REGISTER
;
798 Unique. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-3)
799 that points to the MSR containing the most recent branch record. See
800 MSR_LASTBRANCH_0_FROM_IP (at 40H).
802 @param ECX MSR_CORE2_LASTBRANCH_TOS (0x000001C9)
803 @param EAX Lower 32-bits of MSR value.
804 @param EDX Upper 32-bits of MSR value.
810 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_TOS);
811 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_TOS, Msr);
813 @note MSR_CORE2_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
815 #define MSR_CORE2_LASTBRANCH_TOS 0x000001C9
819 Unique. Last Exception Record From Linear IP (R) Contains a pointer to the
820 last branch instruction that the processor executed prior to the last
821 exception that was generated or the last interrupt that was handled.
823 @param ECX MSR_CORE2_LER_FROM_LIP (0x000001DD)
824 @param EAX Lower 32-bits of MSR value.
825 @param EDX Upper 32-bits of MSR value.
831 Msr = AsmReadMsr64 (MSR_CORE2_LER_FROM_LIP);
833 @note MSR_CORE2_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.
835 #define MSR_CORE2_LER_FROM_LIP 0x000001DD
839 Unique. Last Exception Record To Linear IP (R) This area contains a pointer
840 to the target of the last branch instruction that the processor executed
841 prior to the last exception that was generated or the last interrupt that
844 @param ECX MSR_CORE2_LER_TO_LIP (0x000001DE)
845 @param EAX Lower 32-bits of MSR value.
846 @param EDX Upper 32-bits of MSR value.
852 Msr = AsmReadMsr64 (MSR_CORE2_LER_TO_LIP);
854 @note MSR_CORE2_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.
856 #define MSR_CORE2_LER_TO_LIP 0x000001DE
860 Unique. Fixed-Function Performance Counter Register n (R/W).
862 @param ECX MSR_CORE2_PERF_FIXED_CTRn
863 @param EAX Lower 32-bits of MSR value.
864 @param EDX Upper 32-bits of MSR value.
870 Msr = AsmReadMsr64 (MSR_CORE2_PERF_FIXED_CTR0);
871 AsmWriteMsr64 (MSR_CORE2_PERF_FIXED_CTR0, Msr);
873 @note MSR_CORE2_PERF_FIXED_CTR0 is defined as MSR_PERF_FIXED_CTR0 in SDM.
874 MSR_CORE2_PERF_FIXED_CTR1 is defined as MSR_PERF_FIXED_CTR1 in SDM.
875 MSR_CORE2_PERF_FIXED_CTR2 is defined as MSR_PERF_FIXED_CTR2 in SDM.
878 #define MSR_CORE2_PERF_FIXED_CTR0 0x00000309
879 #define MSR_CORE2_PERF_FIXED_CTR1 0x0000030A
880 #define MSR_CORE2_PERF_FIXED_CTR2 0x0000030B
885 Unique. RO. This applies to processors that do not support architectural
888 @param ECX MSR_CORE2_PERF_CAPABILITIES (0x00000345)
889 @param EAX Lower 32-bits of MSR value.
890 Described by the type MSR_CORE2_PERF_CAPABILITIES_REGISTER.
891 @param EDX Upper 32-bits of MSR value.
892 Described by the type MSR_CORE2_PERF_CAPABILITIES_REGISTER.
896 MSR_CORE2_PERF_CAPABILITIES_REGISTER Msr;
898 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PERF_CAPABILITIES);
899 AsmWriteMsr64 (MSR_CORE2_PERF_CAPABILITIES, Msr.Uint64);
901 @note MSR_CORE2_PERF_CAPABILITIES is defined as MSR_PERF_CAPABILITIES in SDM.
903 #define MSR_CORE2_PERF_CAPABILITIES 0x00000345
906 MSR information returned for MSR index #MSR_CORE2_PERF_CAPABILITIES
910 /// Individual bit fields
914 /// [Bits 5:0] LBR Format. See Table 35-2.
918 /// [Bit 6] PEBS Record Format.
922 /// [Bit 7] PEBSSaveArchRegs. See Table 35-2.
924 UINT32 PEBS_ARCH_REG
:1;
929 /// All bit fields as a 32-bit value
933 /// All bit fields as a 64-bit value
936 } MSR_CORE2_PERF_CAPABILITIES_REGISTER
;
940 Unique. Fixed-Function-Counter Control Register (R/W).
942 @param ECX MSR_CORE2_PERF_FIXED_CTR_CTRL (0x0000038D)
943 @param EAX Lower 32-bits of MSR value.
944 @param EDX Upper 32-bits of MSR value.
950 Msr = AsmReadMsr64 (MSR_CORE2_PERF_FIXED_CTR_CTRL);
951 AsmWriteMsr64 (MSR_CORE2_PERF_FIXED_CTR_CTRL, Msr);
953 @note MSR_CORE2_PERF_FIXED_CTR_CTRL is defined as MSR_PERF_FIXED_CTR_CTRL in SDM.
955 #define MSR_CORE2_PERF_FIXED_CTR_CTRL 0x0000038D
959 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
961 @param ECX MSR_CORE2_PERF_GLOBAL_STATUS (0x0000038E)
962 @param EAX Lower 32-bits of MSR value.
963 @param EDX Upper 32-bits of MSR value.
969 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_STATUS);
970 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_STATUS, Msr);
972 @note MSR_CORE2_PERF_GLOBAL_STATUS is defined as MSR_PERF_GLOBAL_STATUS in SDM.
974 #define MSR_CORE2_PERF_GLOBAL_STATUS 0x0000038E
978 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
980 @param ECX MSR_CORE2_PERF_GLOBAL_CTRL (0x0000038F)
981 @param EAX Lower 32-bits of MSR value.
982 @param EDX Upper 32-bits of MSR value.
988 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_CTRL);
989 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_CTRL, Msr);
991 @note MSR_CORE2_PERF_GLOBAL_CTRL is defined as MSR_PERF_GLOBAL_CTRL in SDM.
993 #define MSR_CORE2_PERF_GLOBAL_CTRL 0x0000038F
997 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
999 @param ECX MSR_CORE2_PERF_GLOBAL_OVF_CTRL (0x00000390)
1000 @param EAX Lower 32-bits of MSR value.
1001 @param EDX Upper 32-bits of MSR value.
1003 <b>Example usage</b>
1007 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_OVF_CTRL);
1008 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_OVF_CTRL, Msr);
1010 @note MSR_CORE2_PERF_GLOBAL_OVF_CTRL is defined as MSR_PERF_GLOBAL_OVF_CTRL in SDM.
1012 #define MSR_CORE2_PERF_GLOBAL_OVF_CTRL 0x00000390
1016 Unique. See Table 35-2. See Section 18.4.4, "Processor Event Based Sampling
1019 @param ECX MSR_CORE2_PEBS_ENABLE (0x000003F1)
1020 @param EAX Lower 32-bits of MSR value.
1021 Described by the type MSR_CORE2_PEBS_ENABLE_REGISTER.
1022 @param EDX Upper 32-bits of MSR value.
1023 Described by the type MSR_CORE2_PEBS_ENABLE_REGISTER.
1025 <b>Example usage</b>
1027 MSR_CORE2_PEBS_ENABLE_REGISTER Msr;
1029 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PEBS_ENABLE);
1030 AsmWriteMsr64 (MSR_CORE2_PEBS_ENABLE, Msr.Uint64);
1032 @note MSR_CORE2_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
1034 #define MSR_CORE2_PEBS_ENABLE 0x000003F1
1037 MSR information returned for MSR index #MSR_CORE2_PEBS_ENABLE
1041 /// Individual bit fields
1045 /// [Bit 0] Enable PEBS on IA32_PMC0. (R/W).
1048 UINT32 Reserved1
:31;
1049 UINT32 Reserved2
:32;
1052 /// All bit fields as a 32-bit value
1056 /// All bit fields as a 64-bit value
1059 } MSR_CORE2_PEBS_ENABLE_REGISTER
;
1063 Unique. GBUSQ Event Control/Counter Register (R/W) Apply to Intel Xeon
1064 processor 7400 series (processor signature 06_1D) only. See Section 17.2.2.
1066 @param ECX MSR_CORE2_EMON_L3_CTR_CTLn
1067 @param EAX Lower 32-bits of MSR value.
1068 @param EDX Upper 32-bits of MSR value.
1070 <b>Example usage</b>
1074 Msr = AsmReadMsr64 (MSR_CORE2_EMON_L3_CTR_CTL0);
1075 AsmWriteMsr64 (MSR_CORE2_EMON_L3_CTR_CTL0, Msr);
1077 @note MSR_CORE2_EMON_L3_CTR_CTL0 is defined as MSR_EMON_L3_CTR_CTL0 in SDM.
1078 MSR_CORE2_EMON_L3_CTR_CTL1 is defined as MSR_EMON_L3_CTR_CTL1 in SDM.
1079 MSR_CORE2_EMON_L3_CTR_CTL2 is defined as MSR_EMON_L3_CTR_CTL2 in SDM.
1080 MSR_CORE2_EMON_L3_CTR_CTL3 is defined as MSR_EMON_L3_CTR_CTL3 in SDM.
1081 MSR_CORE2_EMON_L3_CTR_CTL4 is defined as MSR_EMON_L3_CTR_CTL4 in SDM.
1082 MSR_CORE2_EMON_L3_CTR_CTL5 is defined as MSR_EMON_L3_CTR_CTL5 in SDM.
1083 MSR_CORE2_EMON_L3_CTR_CTL6 is defined as MSR_EMON_L3_CTR_CTL6 in SDM.
1084 MSR_CORE2_EMON_L3_CTR_CTL7 is defined as MSR_EMON_L3_CTR_CTL7 in SDM.
1087 #define MSR_CORE2_EMON_L3_CTR_CTL0 0x000107CC
1088 #define MSR_CORE2_EMON_L3_CTR_CTL1 0x000107CD
1089 #define MSR_CORE2_EMON_L3_CTR_CTL2 0x000107CE
1090 #define MSR_CORE2_EMON_L3_CTR_CTL3 0x000107CF
1091 #define MSR_CORE2_EMON_L3_CTR_CTL4 0x000107D0
1092 #define MSR_CORE2_EMON_L3_CTR_CTL5 0x000107D1
1093 #define MSR_CORE2_EMON_L3_CTR_CTL6 0x000107D2
1094 #define MSR_CORE2_EMON_L3_CTR_CTL7 0x000107D3
1099 Unique. L3/FSB Common Control Register (R/W) Apply to Intel Xeon processor
1100 7400 series (processor signature 06_1D) only. See Section 17.2.2.
1102 @param ECX MSR_CORE2_EMON_L3_GL_CTL (0x000107D8)
1103 @param EAX Lower 32-bits of MSR value.
1104 @param EDX Upper 32-bits of MSR value.
1106 <b>Example usage</b>
1110 Msr = AsmReadMsr64 (MSR_CORE2_EMON_L3_GL_CTL);
1111 AsmWriteMsr64 (MSR_CORE2_EMON_L3_GL_CTL, Msr);
1113 @note MSR_CORE2_EMON_L3_GL_CTL is defined as MSR_EMON_L3_GL_CTL in SDM.
1115 #define MSR_CORE2_EMON_L3_GL_CTL 0x000107D8