From nobody Thu May 2 08:15:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 151678539783642.79556284253658; Wed, 24 Jan 2018 01:16:37 -0800 (PST) Received: from localhost ([::1]:36154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeHAX-0003oW-Li for importer@patchew.org; Wed, 24 Jan 2018 04:16:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeH9C-00037m-RC for qemu-devel@nongnu.org; Wed, 24 Jan 2018 04:15:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeH98-0008DR-2R for qemu-devel@nongnu.org; Wed, 24 Jan 2018 04:15:10 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:45366) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeH92-00087l-J3; Wed, 24 Jan 2018 04:15:00 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 38311FB03; Wed, 24 Jan 2018 10:14:58 +0100 (CET) Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p-XN2JhlHWLF; Wed, 24 Jan 2018 10:14:57 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 9F3D445ED5; Wed, 24 Jan 2018 10:14:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Date: Wed, 24 Jan 2018 10:14:56 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Laurent Vivier Message-ID: <39441aea4e2d05cc505ed3a373e81d3869eb994a.1516785202.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 24.134.29.49 Subject: [Qemu-devel] [PATCH] linux-user: Fix register used for 6th syscall argument on aarch64 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: Riku Voipio , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Unbreaks the testcase from http://lists.nongnu.org/archive/html/qemu-arm/2018-01/msg00514.html Signed-off-by: Guido G=C3=BCnther --- linux-user/host/aarch64/safe-syscall.inc.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/host/aarch64/safe-syscall.inc.S b/linux-user/host/a= arch64/safe-syscall.inc.S index 58a2329b37..e4fbc31454 100644 --- a/linux-user/host/aarch64/safe-syscall.inc.S +++ b/linux-user/host/aarch64/safe-syscall.inc.S @@ -36,7 +36,7 @@ safe_syscall_base: * and return the result in x0 * and the syscall instruction needs * x8 =3D=3D syscall number - * x0 ... x7 =3D=3D syscall arguments + * x0 ... x5 =3D=3D syscall arguments * and returns the result in x0 * Shuffle everything around appropriately. */ @@ -47,7 +47,7 @@ safe_syscall_base: mov x2, x4 mov x3, x5 mov x4, x6 - mov x6, x7 + mov x5, x7 ldr x7, [sp] =20 /* This next sequence of code works in conjunction with the --=20 2.15.1