File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ int detect(void){
156
156
if (!strncasecmp (p , "POWER6" , 6 )) return CPUTYPE_POWER6 ;
157
157
if (!strncasecmp (p , "POWER7" , 6 )) return CPUTYPE_POWER6 ;
158
158
if (!strncasecmp (p , "POWER8" , 6 )) return CPUTYPE_POWER8 ;
159
- if (!strncasecmp (p , "POWER8 " , 6 )) return CPUTYPE_POWER8 ;
159
+ if (!strncasecmp (p , "POWER9 " , 6 )) return CPUTYPE_POWER8 ;
160
160
if (!strncasecmp (p , "Cell" , 4 )) return CPUTYPE_CELL ;
161
161
if (!strncasecmp (p , "7447" , 4 )) return CPUTYPE_PPCG4 ;
162
162
return CPUTYPE_POWER5 ;
@@ -180,7 +180,7 @@ int id;
180
180
id = __asm __volatile ("mfpvr %0" : "=r" (id ));
181
181
switch ( id >> 16 ) {
182
182
case 0x4e : // POWER9
183
- return return CPUTYPE_POWER8 ;
183
+ return CPUTYPE_POWER8 ;
184
184
break ;
185
185
case 0x4d :
186
186
case 0x4b : // POWER8/8E
You can’t perform that action at this time.
0 commit comments