Skip to content

Commit 8707d2a

Browse files
thrimbormborgerson
authored andcommitted
i386: Implement EBL_CR_POWERON MSR for Xbox CPU
1 parent a8d8ef5 commit 8707d2a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

target/i386/cpu.h

+1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ typedef enum X86Seg {
378378
#define MSR_IA32_APICBASE_ENABLE (1<<11)
379379
#define MSR_IA32_APICBASE_EXTD (1 << 10)
380380
#define MSR_IA32_APICBASE_BASE (0xfffffU<<12)
381+
#define MSR_IA32_EBL_CR_POWERON 0x2a
381382
#define MSR_IA32_FEATURE_CONTROL 0x0000003a
382383
#define MSR_TSC_ADJUST 0x0000003b
383384
#define MSR_IA32_SPEC_CTRL 0x48

target/i386/tcg/sysemu/misc_helper.c

+5
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ void helper_rdmsr(CPUX86State *env)
428428
val = 0;
429429
}
430430
break;
431+
#ifdef XBOX
432+
case MSR_IA32_EBL_CR_POWERON:
433+
val = 0xc5040000;
434+
break;
435+
#endif
431436
case MSR_MCG_CAP:
432437
val = env->mcg_cap;
433438
break;

0 commit comments

Comments
 (0)