Skip to content

Commit 42bc2a9

Browse files
authored
Fix copy-paste errors (POWER8/9 and extraneous return)
1 parent 2f04cf2 commit 42bc2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpuid_power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int detect(void){
156156
if (!strncasecmp(p, "POWER6", 6)) return CPUTYPE_POWER6;
157157
if (!strncasecmp(p, "POWER7", 6)) return CPUTYPE_POWER6;
158158
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;
160160
if (!strncasecmp(p, "Cell", 4)) return CPUTYPE_CELL;
161161
if (!strncasecmp(p, "7447", 4)) return CPUTYPE_PPCG4;
162162
return CPUTYPE_POWER5;
@@ -180,7 +180,7 @@ int id;
180180
id = __asm __volatile("mfpvr %0" : "=r"(id));
181181
switch ( id >> 16 ) {
182182
case 0x4e: // POWER9
183-
return return CPUTYPE_POWER8;
183+
return CPUTYPE_POWER8;
184184
break;
185185
case 0x4d:
186186
case 0x4b: // POWER8/8E

0 commit comments

Comments
 (0)