From 056eefb196cb5e6965fc53e8d64f1129c86abf22 Mon Sep 17 00:00:00 2001 From: SarahW Date: Thu, 19 Apr 2018 22:00:33 +0100 Subject: [PATCH] Reset internal cache status correctly on soft CPU reset. Fixes CPU speed detection on Elonex PC-425X. --- src/808x.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/808x.c b/src/808x.c index e93e5f2..e50a13c 100644 --- a/src/808x.c +++ b/src/808x.c @@ -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;