From 24f1a3ea8d136243a89196762c3821be00a555ea Mon Sep 17 00:00:00 2001 From: PBR Date: Mon, 20 May 2013 16:58:51 +0200 Subject: [PATCH] temp workaround to enable compilation and execution of GHC and produced executables in foreign arch chroot --- linux-user/syscall.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4e43a58..db1225a 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8930,6 +8930,18 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; } #endif + + case TARGET_NR_timer_create: + case TARGET_NR_timer_delete: + case TARGET_NR_timer_gettime: + case TARGET_NR_timer_settime: + case TARGET_NR_timer_getoverrun: + { + gemu_log("qemu: syscall: timer_*: ret=0 !!!\n"); + ret = 0; + break; + } + default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num); -- 1.8.2.3