summaryrefslogtreecommitdiff
path: root/tools/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util.c')
-rw-r--r--tools/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/util.c b/tools/util.c
index 9b58bbb..f998009 100644
--- a/tools/util.c
+++ b/tools/util.c
@@ -62,6 +62,12 @@
#elif __MIPSEL__
#define ARCH_NATIVE AUDIT_ARCH_MIPSEL64N32
#endif /* _MIPS_SIM_NABI32 */
+#elif __PPC64__
+#ifdef __BIG_ENDIAN__
+#define ARCH_NATIVE AUDIT_ARCH_PPC64
+#else
+#define ARCH_NATIVE AUDIT_ARCH_PPC64LE
+#endif
#else
#error the simulator code needs to know about your machine type
#endif