From patchwork Mon Oct 17 13:24:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 9379299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 00537600CA for ; Mon, 17 Oct 2016 13:43:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D9829367 for ; Mon, 17 Oct 2016 13:43:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7A582937F; Mon, 17 Oct 2016 13:43:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6564F29367 for ; Mon, 17 Oct 2016 13:43:01 +0000 (UTC) Received: from localhost ([::1]:33146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw8Bw-0001NV-Cn for patchwork-qemu-devel@patchwork.kernel.org; Mon, 17 Oct 2016 09:43:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw7uf-0003MT-4U for qemu-devel@nongnu.org; Mon, 17 Oct 2016 09:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw7ub-0003H8-8X for qemu-devel@nongnu.org; Mon, 17 Oct 2016 09:25:09 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bw7ub-0003Gh-0L for qemu-devel@nongnu.org; Mon, 17 Oct 2016 09:25:05 -0400 Received: by mail-lf0-x234.google.com with SMTP id x79so294887447lff.0 for ; Mon, 17 Oct 2016 06:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PXu7IIY+ichfgbOO1IWa9nV2s1LXSOPNymmJOgOrEq0=; b=FcR2eM7PXCL6Ev5L/l48Zb4XBDcyJJdOx0LwT/sugTMhCCID9BGoFY2QMpfTziy2U8 Lrh6hCmP0Xtgg11o9mtdvzeZPlF4p3oyBq0JAvA/qYrll4XIzeWdtzYANyPN2+z2kMu6 dt9iQjLqL/N3muHTMBuR226ej+SnDxOo8CR14= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PXu7IIY+ichfgbOO1IWa9nV2s1LXSOPNymmJOgOrEq0=; b=eDMnjpXmSghvUUqcqxYbxPJo3YHz41Q3rjqjTC8vv7GUc6tewxyIZi4ruuTUiR8/fJ jpZPXYeds3zun74JyOINMMBbTvtDDCH2ihApsIOBbHJn7vPENZ87zB1sJtxZgiQou8IQ gdfKQc4sMnbJ4RotLS5epyDf1uCzIV67C9OfjsK557l2sxpqHg5ia+hQ6dRgnr/iwcmd 74GOlznlXeToS//IbNj8c0iVESiy+mu3jX2cdR1aMZBRQijBkDsDUKI25ErekkElxP2F Wk76zXZqaOabDyOhwjv/gbTPdVQxptUEa80Buf6ZehQ+5YiAoyeS7WNIvNidQgj12HrG HT3w== X-Gm-Message-State: AA6/9RmsApEIWy8Xiyky4kHVNpMcn8ph9Iw/SBAsxJmpoZqTHPC717A3C3ikPnPFa0KCFyuD X-Received: by 10.25.217.82 with SMTP id q79mr12094553lfg.13.1476710703539; Mon, 17 Oct 2016 06:25:03 -0700 (PDT) Received: from beaming.home (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id y81sm7782857lff.29.2016.10.17.06.25.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 06:25:02 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 17 Oct 2016 16:24:34 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::234 Subject: [Qemu-devel] [PULL 16/22] linux-user: Update mips_syscall_args[] array in main.c 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: Peter Maydell , Aleksandar Markovic Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Aleksandar Markovic Array mips_syscall_args[] determines number of arguments for each syscall on Mips32. It wasn't updated with newer syscalls. Also, preadv and pwritev have 5 arguments, not 6. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/main.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 0e31dad..18d5a62 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2295,8 +2295,8 @@ static const uint8_t mips_syscall_args[] = { MIPS_SYS(sys_dup3, 3) MIPS_SYS(sys_pipe2, 2) MIPS_SYS(sys_inotify_init1, 1) - MIPS_SYS(sys_preadv, 6) /* 4330 */ - MIPS_SYS(sys_pwritev, 6) + MIPS_SYS(sys_preadv, 5) /* 4330 */ + MIPS_SYS(sys_pwritev, 5) MIPS_SYS(sys_rt_tgsigqueueinfo, 4) MIPS_SYS(sys_perf_event_open, 5) MIPS_SYS(sys_accept4, 4) @@ -2308,6 +2308,26 @@ static const uint8_t mips_syscall_args[] = { MIPS_SYS(sys_open_by_handle_at, 3) /* 4340 */ MIPS_SYS(sys_clock_adjtime, 2) MIPS_SYS(sys_syncfs, 1) + MIPS_SYS(sys_sendmmsg, 4) + MIPS_SYS(sys_setns, 2) + MIPS_SYS(sys_process_vm_readv, 6) /* 345 */ + MIPS_SYS(sys_process_vm_writev, 6) + MIPS_SYS(sys_kcmp, 5) + MIPS_SYS(sys_finit_module, 3) + MIPS_SYS(sys_sched_setattr, 2) + MIPS_SYS(sys_sched_getattr, 3) /* 350 */ + MIPS_SYS(sys_renameat2, 5) + MIPS_SYS(sys_seccomp, 3) + MIPS_SYS(sys_getrandom, 3) + MIPS_SYS(sys_memfd_create, 2) + MIPS_SYS(sys_bpf, 3) /* 355 */ + MIPS_SYS(sys_execveat, 5) + MIPS_SYS(sys_userfaultfd, 1) + MIPS_SYS(sys_membarrier, 2) + MIPS_SYS(sys_mlock2, 3) + MIPS_SYS(sys_copy_file_range, 6) /* 360 */ + MIPS_SYS(sys_preadv2, 6) + MIPS_SYS(sys_pwritev2, 6) }; # undef MIPS_SYS # endif /* O32 */