added comments to cpuid and msr defs
This commit is contained in:
parent
abe3a6fba3
commit
305539aae6
@ -251,6 +251,7 @@ void bx_cpuid_t::get_std_cpuid_xsave_leaf(Bit32u subfunction, cpuid_function_t *
|
|||||||
// EAX[1] - support for compaction extensions to the XSAVE feature set
|
// EAX[1] - support for compaction extensions to the XSAVE feature set
|
||||||
// EAX[2] - support for execution of XGETBV with ECX = 1
|
// EAX[2] - support for execution of XGETBV with ECX = 1
|
||||||
// EAX[3] - support for XSAVES, XRSTORS, and the IA32_XSS MSR
|
// EAX[3] - support for XSAVES, XRSTORS, and the IA32_XSS MSR
|
||||||
|
// EAX[4] - support for XFD
|
||||||
leaf->eax = 0;
|
leaf->eax = 0;
|
||||||
if (is_cpu_extension_supported(BX_ISA_XSAVEOPT))
|
if (is_cpu_extension_supported(BX_ISA_XSAVEOPT))
|
||||||
leaf->eax |= 0x1;
|
leaf->eax |= 0x1;
|
||||||
|
@ -42,6 +42,9 @@ enum MSR_Register {
|
|||||||
BX_MSR_SYSENTER_EIP = 0x176,
|
BX_MSR_SYSENTER_EIP = 0x176,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BX_MSR_IA32_XFD = 0x1c4,
|
||||||
|
BX_MSR_IA32_XFD_ERROR = 0x1c5,
|
||||||
|
|
||||||
BX_MSR_DEBUGCTLMSR = 0x1d9,
|
BX_MSR_DEBUGCTLMSR = 0x1d9,
|
||||||
BX_MSR_LASTBRANCHFROMIP = 0x1db,
|
BX_MSR_LASTBRANCHFROMIP = 0x1db,
|
||||||
BX_MSR_LASTBRANCHTOIP = 0x1dc,
|
BX_MSR_LASTBRANCHTOIP = 0x1dc,
|
||||||
|
Loading…
Reference in New Issue
Block a user