From nobody Tue Feb 10 03:39:37 2026 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 1525080824330536.9947650845213; Mon, 30 Apr 2018 02:33:44 -0700 (PDT) Received: from localhost ([::1]:58657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD5Bn-0008On-Dt for importer@patchew.org; Mon, 30 Apr 2018 05:33:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD4qR-0006gV-CG for qemu-devel@nongnu.org; Mon, 30 Apr 2018 05:11:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD4qM-0006Wi-11 for qemu-devel@nongnu.org; Mon, 30 Apr 2018 05:11:39 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:35707) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fD4qL-0006VR-HN; Mon, 30 Apr 2018 05:11:33 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MWRtC-1esfcy3Ah0-00XdN0; Mon, 30 Apr 2018 11:11:26 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 30 Apr 2018 11:10:37 +0200 Message-Id: <20180430091037.13878-43-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180430091037.13878-1-laurent@vivier.eu> References: <20180430091037.13878-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:S7c+THSRYyBmJae4q8/KCe9UMEHypAUjwGgdrK/fH5s1JcN8Jpa sDWhscdYRE2jgG6fxD30ncIpjCDLzEYF9L8MEU90q29lFSFQDPcgfcX+sVi+mpq4s/8/VOY EW9kpSIFw1gwsyjK7L3eFjs+HJdHmKf6sd2vga6Uwt/HeaowfrGPBw/0hGRHnsbWX7Ke8lG ujov6mZo9CNesybflF9Kg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Wk4Pn5Sf3zU=:fYgQ/ZN6MbNxgXgiJifKsh DWrCdVGoDjM7r89jA3xYFFZUop5PNLEFw2SPyAZ4jAs/f8pRDBKhhsv1KlHvw71uFu1Ov26Up ydyIdzrijbeN1DbeoJV6uex5UhE8G4dAEhUo5BPJ4j0+Jr9CNNNSdpAupINJdKjvQ/6AcFSGP 7PyMgRv9+8vWkqTguEnXdG/9UtTgHRYjWyfYsu/rowrIpE+Quw/6NdIUtWcgoA30bE/U2qnof IpGNHEnY80eXTbWG+16seLSHwRBn9tRqKogsPHTZHWXwE+ZpKeGPdVSI5g1mHdng/Nh0CWty9 VfPXjifWrfnHVLvdZLV8hK1jvltQ0+rprOlUnfdmcyNs34hFCCsJkfSij0Q3ae8LSW2SqdDrO jV0tQ+ov8XGpUBIjhijTQWz4+dMPoXbPeJFrQ3ml1fnYwSj7d1tAEBmLniQaXyAjvrXR8T758 LQK6ndHfDHKvuN+R4nyQux7gaArGF6JcpminIdAXDCVeFQ8GCUN1jrtI93zRYWwZ6TkBGi6+l qW4nif6ibtOCqpmmvA79C8WhUlHGIHPqGpcj+X3GdUb5eWipd+BDHDPlb4mqVEol5aPJtn8lI PRxOpimJPNJcnTYqsduvr6kYL2knwEa3i5E1zxqnWQxw1d3nyXjS3+Qb7ocJfEUO43KJy4bE7 /JXco3ckcEDOEgBwQDXQ17Wx/yOSd3YuRrvBmnmYN8D5p0Qx26f0/LNEtTRY3OhMcoEPBB2tF hGUWw+lV34P7mwkx X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.73 Subject: [Qemu-devel] [PULL 42/42] linux-user: Add ARM get_tls syscall support 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: Christophe Lyon , qemu-s390x@nongnu.org, Riku Voipio , Laurent Vivier , Cornelia Huck Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Christophe Lyon Co-Authored-By: Micka=C3=ABl Gu=C3=AAn=C3=A9 Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell Message-Id: <20180416091845.7315-1-christophe.lyon@st.com> [lv: moved the change to linux-user/arm/cpu_loop.c] Signed-off-by: Laurent Vivier --- linux-user/arm/cpu_loop.c | 3 +++ linux-user/arm/target_syscall.h | 1 + 2 files changed, 4 insertions(+) diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index d911929bf6..26928fbbb2 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -347,6 +347,9 @@ void cpu_loop(CPUARMState *env) case ARM_NR_breakpoint: env->regs[15] -=3D env->thumb ? 2 : 4; goto excp_debug; + case ARM_NR_get_tls: + env->regs[0] =3D cpu_get_tls(env); + break; default: gemu_log("qemu: Unsupported ARM syscall: 0x%x\= n", n); diff --git a/linux-user/arm/target_syscall.h b/linux-user/arm/target_syscal= l.h index 94e2a42cb2..afc0772e19 100644 --- a/linux-user/arm/target_syscall.h +++ b/linux-user/arm/target_syscall.h @@ -16,6 +16,7 @@ struct target_pt_regs { #define ARM_NR_breakpoint (ARM_NR_BASE + 1) #define ARM_NR_cacheflush (ARM_NR_BASE + 2) #define ARM_NR_set_tls (ARM_NR_BASE + 5) +#define ARM_NR_get_tls (ARM_NR_BASE + 6) =20 #define ARM_NR_semihosting 0x123456 #define ARM_NR_thumb_semihosting 0xAB --=20 2.14.3