From e2886d2bd7abb5065a8c35dbad5e30b97c682f4f Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 4 Jul 2020 15:16:39 +0200 Subject: [PATCH] kernel: fix trying to set CPUOPM on SH3 Results in an Illegal Instruction no the ICBI that follows the value change. --- src/core/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/kernel.c b/src/core/kernel.c index 6edfdbb..83d5b14 100644 --- a/src/core/kernel.c +++ b/src/core/kernel.c @@ -99,7 +99,7 @@ static void drivers_switch(int who) static void kinit_cpu(void) { - cpu_setCPUOPM(cpu_getCPUOPM() | 0x00000008); + if(isSH4()) cpu_setCPUOPM(cpu_getCPUOPM() | 0x00000008); } /* kinit(): Install and start gint */