Skip to content

Commit

Permalink
emulators/qemu-devel: fix build on powerpc64*
Browse files Browse the repository at this point in the history
Same patch as for emulators/qemu.
  • Loading branch information
pkubaj committed Oct 6, 2023
1 parent 5afb962 commit c57e0dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions emulators/qemu-devel/files/patch-util_cpuinfo-ppc.c
@@ -0,0 +1,18 @@
--- util/cpuinfo-ppc.c.orig 2023-08-29 11:28:39 UTC
+++ util/cpuinfo-ppc.c
@@ -9,8 +9,14 @@
#ifdef CONFIG_GETAUXVAL
# include <sys/auxv.h>
#else
-# include <asm/cputable.h>
+# 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;

0 comments on commit c57e0dd

Please sign in to comment.