kernel: fix trying to set CPUOPM on SH3

Results in an Illegal Instruction no the ICBI that follows the value
change.
This commit is contained in:
Lephe 2020-07-04 15:16:39 +02:00
parent 9d1187b5b4
commit e2886d2bd7
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -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 */