ports/emulators/qemu/files/patch-util_cpuinfo-ppc.c
2024-01-30 12:49:25 +01:00

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;