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: 683710 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 3syx7Q2WdMz9s3s for ; Wed, 19 Oct 2016 00:41:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=KvwfpYzu; dkim-atps=neutral Received: from localhost ([::1]:41595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwUe7-0007J6-3t for incoming@patchwork.ozlabs.org; Tue, 18 Oct 2016 09:41:35 -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+incoming=patchwork.ozlabs.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(-) 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 */