Skip to content

Commit

Permalink
i386: Implement EBL_CR_POWERON MSR for Xbox CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
thrimbor authored and mborgerson committed Aug 21, 2024
1 parent a8d8ef5 commit 8707d2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/i386/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ typedef enum X86Seg {
#define MSR_IA32_APICBASE_ENABLE (1<<11)
#define MSR_IA32_APICBASE_EXTD (1 << 10)
#define MSR_IA32_APICBASE_BASE (0xfffffU<<12)
#define MSR_IA32_EBL_CR_POWERON 0x2a
#define MSR_IA32_FEATURE_CONTROL 0x0000003a
#define MSR_TSC_ADJUST 0x0000003b
#define MSR_IA32_SPEC_CTRL 0x48
Expand Down
5 changes: 5 additions & 0 deletions target/i386/tcg/sysemu/misc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ void helper_rdmsr(CPUX86State *env)
val = 0;
}
break;
#ifdef XBOX
case MSR_IA32_EBL_CR_POWERON:
val = 0xc5040000;
break;
#endif
case MSR_MCG_CAP:
val = env->mcg_cap;
break;
Expand Down

0 comments on commit 8707d2a

Please sign in to comment.