From fcdd6f828f0bc3ad6e4470b920d8dd55c3498766 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 5 Nov 2016 16:02:39 +0100 Subject: [PATCH] MSR 187 implemented for the Pentium Pro. --- src/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cpu.c b/src/cpu.c index 0baa13313..a1d6facde 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -106,6 +106,7 @@ uint64_t ecx116_msr = 0; uint64_t ecx11x_msr[4] = {0, 0, 0, 0}; uint64_t ecx11e_msr = 0; uint64_t ecx186_msr = 0; +uint64_t ecx187_msr = 0; uint64_t ecx1e0_msr = 0; uint64_t ecx570_msr = 0; @@ -2006,6 +2007,10 @@ void cpu_RDMSR() EAX = ecx186_msr & 0xffffffff; EDX = ecx186_msr >> 32; break; + case 0x187: + EAX = ecx187_msr & 0xffffffff; + EDX = ecx187_msr >> 32; + break; case 0x1E0: EAX = ecx1e0_msr & 0xffffffff; EDX = ecx1e0_msr >> 32; @@ -2194,6 +2199,9 @@ void cpu_WRMSR() case 0x186: ecx186_msr = EAX | ((uint64_t)EDX << 32); break; + case 0x187: + ecx187_msr = EAX | ((uint64_t)EDX << 32); + break; case 0x1E0: ecx1e0_msr = EAX | ((uint64_t)EDX << 32); break;