Merge pull request #764 from nerd73/master
Make writing to MSR 0x8B cause a GPF on Intel Pentium/Pentium MMX
This commit is contained in:
@@ -3149,6 +3149,10 @@ void cpu_WRMSR()
|
|||||||
case 0x10:
|
case 0x10:
|
||||||
tsc = EAX | ((uint64_t)EDX << 32);
|
tsc = EAX | ((uint64_t)EDX << 32);
|
||||||
break;
|
break;
|
||||||
|
case 0x8B:
|
||||||
|
cpu_log("WRMSR: Invalid MSR: 0x8B/n"); /*Needed for Vista to correctly break on Pentium*/
|
||||||
|
x86gpf(NULL, 0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
#if defined(DEV_BRANCH) && defined(USE_CYRIX_6X86)
|
||||||
|
Reference in New Issue
Block a user