#GP on EFER access when not supported

This commit is contained in:
Stanislav Shwartsman 2011-08-14 20:41:46 +00:00
parent fb8d302f72
commit e50e187128

View File

@ -208,6 +208,9 @@ bx_bool BX_CPP_AttrRegparmN(2) BX_CPU_C::rdmsr(Bit32u index, Bit64u *msr)
#if BX_CPU_LEVEL >= 6
case BX_MSR_EFER:
if (! BX_CPU_THIS_PTR efer_suppmask)
return 0;
val64 = BX_CPU_THIS_PTR efer.get32();
break;
#endif