From patchwork Mon Apr 2 17:13:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10320099 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 73558602C8 for ; Mon, 2 Apr 2018 17:24:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6381C28AB9 for ; Mon, 2 Apr 2018 17:24:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5793828ABD; Mon, 2 Apr 2018 17:24: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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, 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 DC68D28AB9 for ; Mon, 2 Apr 2018 17:24:00 +0000 (UTC) Received: from localhost ([::1]:50226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f33BY-0003IA-4f for patchwork-qemu-devel@patchwork.kernel.org; Mon, 02 Apr 2018 13:24:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f332W-0004VB-F9 for qemu-devel@nongnu.org; Mon, 02 Apr 2018 13:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f332V-0004ie-Ki for qemu-devel@nongnu.org; Mon, 02 Apr 2018 13:14:40 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:41039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f332V-0004hz-DO for qemu-devel@nongnu.org; Mon, 02 Apr 2018 13:14:39 -0400 Received: by mail-wr0-x244.google.com with SMTP id s12so4130973wrc.8 for ; Mon, 02 Apr 2018 10:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R1C6+I5jW74bkd20G57A81TllHcjX1vbNlju+BzNyH8=; b=pv7kuRGs7fv4smVBeDE+rZ1bhRCZWPY0nN6YFHt4EuWx+3vghuzdVM59LTgZgAc3H7 w9c5nWSuHHV1ACOan3OfRS8ITk14HOPcjCc3asmt7Nc/csM+i3V9G8pncSvpZ9okGwtc obIhI4ltbri4ThzjKktVFCmHgvx7YYE2cl0eVoaBkY/mFABru/+ZRP4d2BKKuI8ElXQQ eOQh3NjuivxKhi8BmBI13uXHJsQoPwITsYmpk4nEf/FAGDqrF94+pP79bAqdryA5aAKJ K0pvAEbJiz6xySogSGDpAHDJpC1rMVBm4+lje5FP83U1bC1dmJHU1I1Ofqcvt8CufMQi kSSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R1C6+I5jW74bkd20G57A81TllHcjX1vbNlju+BzNyH8=; b=ZxOIG6qiPvzcbKdvIg+wZnKAXekELaqTIZTqvJwdoICjtuDc19lDf7KAWoWxh/KZAA 5NBw3UeQfBGljxrrZyl/8wAtMKIsxi+VHWMjtXRhyHphBW3D/hnpeATK4KaiaIZT2kxb +X6Hipk5OeCWvQ9JhXVAXm/9ppjEkKvn8MvXvb59CjpOq00HMRhyT3FnGHwRnkShYQnO igMQf9InS4P1g7do4iClfI4lcC22SqFLmdbe0AVrtocS0d8jxM76o2OYAJaSDK7HYO++ Ilh9uPZootj48Z6Y/Sds6jhbcs+Eo3dr2cVRViV/QcoptCU8WQAegnpfpknijOroWf/j 1XWg== X-Gm-Message-State: ALQs6tBP1gZiK4a/e6PVsJ6A6sWH/ZhbF0hwIQxWsEQsdZx2pjusO5qF y2Y4Cl4FzcpUMCY+X9NEAUcA7A== X-Google-Smtp-Source: AIpwx48bfA/HxcDLel9/AQF9I4v4xHyJSdhBJg77fb+2lvLWKHbCZRCzZWJ0/Xq90etaOJcy74XL/w== X-Received: by 2002:a19:fe2:: with SMTP id 95-v6mr6426567lfp.13.1522689278268; Mon, 02 Apr 2018 10:14:38 -0700 (PDT) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id s87-v6sm142360lfk.69.2018.04.02.10.14.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 10:14:37 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Mon, 2 Apr 2018 10:13:54 -0700 Message-Id: <20180402171354.27706-9-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180402171354.27706-1-jcmvbkbc@gmail.com> References: <20180402171354.27706-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PULL 8/8] target/xtensa: linux-user: fix fadvise64 call 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 , Riku Voipio , Laurent Vivier , Max Filippov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP fadvise64_64 on xtensa passes advice as the second argument and so must be handled similar to PPC. This fixes glibc testsuite tests posix/tst-posix_fadvise and posix/tst-posix_fadvise64. Reviewed-by: Laurent Vivier Signed-off-by: Max Filippov --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 924fd68efcdd..5ef517613577 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11509,7 +11509,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #ifdef TARGET_NR_fadvise64_64 case TARGET_NR_fadvise64_64: -#if defined(TARGET_PPC) +#if defined(TARGET_PPC) || defined(TARGET_XTENSA) /* 6 args: fd, advice, offset (high, low), len (high, low) */ ret = arg2; arg2 = arg3;