i386: Add support for SPEC_CTRL MSR

Backports commit cb2637a5ae1f4e61af423395300548f14e8a2e2a from qemu
This commit is contained in:
Paolo Bonzini 2018-03-05 12:35:03 -05:00 committed by Lioncash
parent 181524d695
commit 7cf98b1a6e
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -332,6 +332,7 @@
#define MSR_IA32_APICBASE_BASE (0xfffffU<<12)
#define MSR_IA32_FEATURE_CONTROL 0x0000003a
#define MSR_TSC_ADJUST 0x0000003b
#define MSR_IA32_SPEC_CTRL 0x48
#define MSR_IA32_TSCDEADLINE 0x6e0
#define FEATURE_CONTROL_LOCKED (1<<0)
@ -1075,6 +1076,8 @@ typedef struct CPUX86State {
uint32_t pkru;
uint64_t spec_ctrl;
/* End of state preserved by INIT (dummy marker). */
//struct {} end_init_save;
int end_init_save;