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.
This commit is contained in:
pkubaj 2018-11-30 16:04:07 +00:00 committed by Martin Kroeker
parent 2601cd58ab
commit 731b2722ba
1 changed files with 2 additions and 2 deletions

View File

@ -175,9 +175,9 @@ int detect(void){
return CPUTYPE_PPC970; return CPUTYPE_PPC970;
#endif #endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
int id; int id;
id = __asm __volatile("mfpvr %0" : "=r"(id)); __asm __volatile("mfpvr %0" : "=r"(id));
switch ( id >> 16 ) { switch ( id >> 16 ) {
case 0x4e: // POWER9 case 0x4e: // POWER9
return CPUTYPE_POWER8; return CPUTYPE_POWER8;