Skip to content

Commit 731b272

Browse files
pkubajmartin-frbg
authored andcommitted
Fix build on POWER, remove DragonFly, add NetBSD
__asm is complete on its own DBSD developers state they will only support amd64, but NetBSD supports POWER.
1 parent 2601cd5 commit 731b272

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
@@ -175,9 +175,9 @@ int detect(void){
175175
return CPUTYPE_PPC970;
176176
#endif
177177

178-
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
178+
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
179179
int id;
180-
id = __asm __volatile("mfpvr %0" : "=r"(id));
180+
__asm __volatile("mfpvr %0" : "=r"(id));
181181
switch ( id >> 16 ) {
182182
case 0x4e: // POWER9
183183
return CPUTYPE_POWER8;

0 commit comments

Comments
 (0)