Implemented CR4 register for Winchip. Currently only Time Stamp Disable (TSD) has an effect.

Fixed stupid bug in WRMSR - MSRs can now be written with values other than zero.
This commit is contained in:
TomW 2014-08-23 16:28:16 +01:00
commit 262b188790
6 changed files with 49 additions and 2 deletions

View file

@ -630,6 +630,7 @@ void resetx86()
pc=0;
msw=0;
cr0=0;
cr4 = 0;
eflags=0;
cgate32=0;
loadcs(0xFFFF);
@ -660,6 +661,7 @@ void softresetx86()
pc=0;
msw=0;
cr0=0;
cr4 = 0;
eflags=0;
cgate32=0;
loadcs(0xFFFF);