From c0a77f32c15b8dc5011109530559b6738160e492 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 30 Aug 2017 14:25:03 -0700 Subject: [PATCH] test-runner: Add support for Qemu on PowerPC 32-bit and 64-bit --- tools/test-runner.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/test-runner.c b/tools/test-runner.c index 6f5e94df..24c4a658 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -116,6 +116,24 @@ static const char * const qemu_table[] = { "/usr/bin/qemu-system-aarch64", NULL }; +#elif defined(__powerpc__) +/* + * If iwd is being built for PowerPC look for 32-bit version. + */ +static const char * const qemu_table[] = { + "qemu-system-ppc", + "/usr/bin/qemu-system-ppc", + NULL +}; +#elif defined(__powerpc64__) +/* + * If iwd is being built for PowerPC-64 look for 64-bit version. + */ +static const char * const qemu_table[] = { + "qemu-system-ppc64", + "/usr/bin/qemu-system-ppc64", + NULL +}; #else #warning Qemu binary name not defined for this architecture yet static const char * const qemu_table[] = { NULL };