mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 06:30:29 -04:00
21 lines
425 B
C
21 lines
425 B
C
--- util/cpuinfo-ppc.c.orig 2024-01-29 19:13:22 UTC
|
|
+++ util/cpuinfo-ppc.c
|
|
@@ -6,11 +6,17 @@
|
|
#include "qemu/osdep.h"
|
|
#include "host/cpuinfo.h"
|
|
|
|
-#include <asm/cputable.h>
|
|
#ifdef CONFIG_GETAUXVAL
|
|
# include <sys/auxv.h>
|
|
#else
|
|
+# ifdef __linux__
|
|
+# include <asm/cputable.h>
|
|
+# endif
|
|
# include "elf.h"
|
|
+#endif
|
|
+
|
|
+#ifndef PPC_FEATURE2_ARCH_3_1
|
|
+# define PPC_FEATURE2_ARCH_3_1 0x00040000
|
|
#endif
|
|
|
|
unsigned cpuinfo;
|