diff options
Diffstat (limited to 'target-i386/op_helper.c')
-rw-r--r-- | target-i386/op_helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index 8cf3bb2d8e..0584bd493c 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -3215,6 +3215,13 @@ void helper_rdmsr(void) case MSR_MTRRdefType: val = env->mtrr_deftype; break; + case MSR_MTRRcap: + if (env->cpuid_features & CPUID_MTRR) + val = MSR_MTRRcap_VCNT | MSR_MTRRcap_FIXRANGE_SUPPORT | MSR_MTRRcap_WC_SUPPORTED; + else + /* XXX: exception ? */ + val = 0; + break; default: /* XXX: exception ? */ val = 0; |