Reset internal cache status correctly on soft CPU reset. Fixes CPU speed detection on Elonex PC-425X.

This commit is contained in:
SarahW 2018-04-19 22:00:33 +01:00
commit 056eefb196

View file

@ -679,7 +679,12 @@ void softresetx86()
// i86_Reset();
// cs=0xFFFF0;
msw=0;
cr0=0;
if (is486)
cr0 = 1 << 30;
else
cr0 = 0;
cpu_cache_int_enabled = 0;
cpu_update_waitstates();
cr4 = 0;
eflags=0;
cgate32=0;