From patchwork Tue Oct 18 13:21:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 78051 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp891747qge; Tue, 18 Oct 2016 06:42:32 -0700 (PDT) X-Received: by 10.55.20.158 with SMTP id 30mr538541qku.27.1476798152547; Tue, 18 Oct 2016 06:42:32 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f66si21025996qke.149.2016.10.18.06.42.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 18 Oct 2016 06:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwUf1-0007J6-Oj for patch@linaro.org; Tue, 18 Oct 2016 09:42:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwULN-0006NX-RU for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwULM-0000jf-V2 for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:13 -0400 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwULM-0000iu-Me for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:22:12 -0400 Received: by mail-lf0-x236.google.com with SMTP id x79so355985961lff.0 for ; Tue, 18 Oct 2016 06:22:12 -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=KvwfpYzuG9ilKr450l4npIL4MYrnFd0+lVIaBzlWYRA9LajFcYabqSVD3RHxNXRuwp p+Fe0L2gctitmL91kS9lwpNsm8+2+9iGy0g9wUZvUTM5IGImsND3JEqaLUS+y4wlBekO h7jj1wULy5WN+5jGgIwiYmOHQD1tBQQpW65T0= 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=BjxZ9fdrmt6bA6nfPwbOIv/AejypMuDEeEyq0gxs4KwAN8tgWP4Nt4b4yjCnp0U9zB p33zCkNgcDkm8cQlCpwE22XAq2b9u0CxWMVenghxc5CewQbnQyzXHgGCFYpBBiopY+RH oNZblmrrzAUBw4PMf/ENIlboCi/HeV5OFrLuD62Z/kf+kO4PVt+IM27dNVzU85U1ZNdY O0BWEQSaFQuabnFFaW+Ho8gDG503D0Nf/m1oaA4/fH/DfX90nKICsAikS06d8zX+cIxu y9Hdsj12ub8X/k8e1Kvn9Q+CKc6g7Cu5qBr36W4kvf6+6fXuRztQMSwhSFeNQNp2xYes LsbQ== X-Gm-Message-State: AA6/9Rn0Pe0OB0lLn3cUG54lDxZSD3lmieStB7GlwBs284UB+CCRmMB9cyD+xCbc2cFOPI92 X-Received: by 10.25.28.12 with SMTP id c12mr538552lfc.83.1476796930936; Tue, 18 Oct 2016 06:22:10 -0700 (PDT) Received: from beaming.home (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id 201sm9535359ljf.48.2016.10.18.06.22.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 06:22:10 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 18 Oct 2016 16:21:44 +0300 Message-Id: <54000625c6c8983f970f25d44f7eea8593aa2736.1476796525.git.riku.voipio@linaro.org> 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::236 Subject: [Qemu-devel] [PULL v2 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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(-) -- 2.1.4 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 */