From patchwork Fri Jul 1 11:59:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wirth, Allan" X-Patchwork-Id: 642987 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rgxz40V22z9sC3 for ; Fri, 1 Jul 2016 23:27:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=akamai.com header.i=@akamai.com header.b=BSiQ2Foz; dkim-atps=neutral Received: from localhost ([::1]:33589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIyTN-0002qm-PI for incoming@patchwork.ozlabs.org; Fri, 01 Jul 2016 09:27:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIx6q-0000jx-0L for qemu-devel@nongnu.org; Fri, 01 Jul 2016 07:59:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIx6l-0003Bj-Qb for qemu-devel@nongnu.org; Fri, 01 Jul 2016 07:59:46 -0400 Received: from prod-mail-xrelay08.akamai.com ([96.6.114.112]:16402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIx6l-0003Ax-JI; Fri, 01 Jul 2016 07:59:43 -0400 Received: from prod-mail-xrelay08.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 21234200047; Fri, 1 Jul 2016 11:59:40 +0000 (GMT) Received: from prod-mail-relay08.akamai.com (prod-mail-relay08.akamai.com [172.27.22.71]) by prod-mail-xrelay08.akamai.com (Postfix) with ESMTP id 0AF9F200010; Fri, 1 Jul 2016 11:59:40 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; s=a1; t=1467374380; bh=DOJu5MLy034CUEvJW6waAnLXtL0bRectuCkIOBl+cVQ=; l=1138; h=From:To:CC:Date:From; b=BSiQ2Foz+YobeYoQCj6fPWiN/Dgr2ETqvbkrp60zJaEFEU/Nkn8ZcyrRWvVZTp94B Ucv7VpjrF4rE9tOhbGYfnYpAaK42pzgw6Pag2TIol7ptuzf8qSVlvxDKGCqAj6IDJO 683VKzKSpl0bM4rfJ0YScah/cn5A+IsfBjsRT8lY= Received: from email.msg.corp.akamai.com (ustx2ex-cas5.msg.corp.akamai.com [172.27.25.34]) by prod-mail-relay08.akamai.com (Postfix) with ESMTP id 080F698082; Fri, 1 Jul 2016 11:59:40 +0000 (GMT) Received: from USTX2EX-DAG1MB3.msg.corp.akamai.com (172.27.27.103) by ustx2ex-dag1mb1.msg.corp.akamai.com (172.27.27.101) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Fri, 1 Jul 2016 06:59:39 -0500 Received: from USTX2EX-DAG1MB3.msg.corp.akamai.com ([172.27.27.103]) by ustx2ex-dag1mb3.msg.corp.akamai.com ([172.27.27.103]) with mapi id 15.00.1130.005; Fri, 1 Jul 2016 06:59:39 -0500 From: "Wirth, Allan" To: "qemu-devel@nongnu.org" , Riku Voipio Thread-Topic: [PATCH] linux-user: fix signal() syscall on x86_64 Thread-Index: AQHR05ALwApKz4zPX0yzVa9Bvxt/LQ== Date: Fri, 1 Jul 2016 11:59:39 +0000 Message-ID: <92770843-66C8-471B-BA9C-DA46E92817B9@akamai.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.40.129] Content-ID: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.6.114.112 X-Mailman-Approved-At: Fri, 01 Jul 2016 09:25:57 -0400 Subject: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "qemu-trivial@nongnu.org" Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Linux on X86_64 does not use sel_arg_struct for select(), the args are passed directly. This patch switches a define so X86_64 uses the correct calling convention. Signed-off-by: Allan Wirth --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8bf6205..209b2a7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8002,7 +8002,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #if defined(TARGET_NR_select) case TARGET_NR_select: -#if defined(TARGET_S390X) || defined(TARGET_ALPHA) +#if defined(TARGET_S390X) || defined(TARGET_ALPHA) || defined(TARGET_X86_64) ret = do_select(arg1, arg2, arg3, arg4, arg5); #else {