mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 11:16:28 +00:00
i386: Add support for SPEC_CTRL MSR
Backports commit cb2637a5ae1f4e61af423395300548f14e8a2e2a from qemu
This commit is contained in:
parent
181524d695
commit
7cf98b1a6e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue