From a7a637eb10da073c2500eade4554ac973134f1e4 Mon Sep 17 00:00:00 2001 From: Denis Kopyrin Date: Thu, 20 Oct 2022 01:57:53 +0000 Subject: [PATCH] Disable cache emulation checks for VC (#509) * Disable cache emulation checks for VC * Get rid of unnecessary gIsVC initialization --- src/boot/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/boot/main.c b/src/boot/main.c index abe98e12..63a9302b 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -345,8 +345,11 @@ void thread3_main(UNUSED void *arg) { if (IO_READ(DPC_CLOCK_REG) == 0) { gIsConsole = FALSE; gBorderHeight = BORDER_HEIGHT_EMULATOR; - gIsVC = IS_VC(); - check_cache_emulation(); + if (!gIsVC) { + check_cache_emulation(); + } else { + gCacheEmulated = FALSE; + } } else { gIsConsole = TRUE; gBorderHeight = BORDER_HEIGHT_CONSOLE;