Message ID | 20180430091037.13878-43-laurent@vivier.eu |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu 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 ozlabs.org (Postfix) with ESMTPS id 40ZK891ZLNz9s0n for <incoming@patchwork.ozlabs.org>; Mon, 30 Apr 2018 19:32:41 +1000 (AEST) Received: from localhost ([::1]:58653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fD5Al-0007Qr-52 for incoming@patchwork.ozlabs.org; Mon, 30 Apr 2018 05:32:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <laurent@vivier.eu>) 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 <laurent@vivier.eu>) 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 <laurent@vivier.eu>) 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 <laurent@vivier.eu> 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: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Christophe Lyon <christophe.lyon@st.com>, qemu-s390x@nongnu.org, Riku Voipio <riku.voipio@iki.fi>, Laurent Vivier <laurent@vivier.eu>, Cornelia Huck <cohuck@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/42] linux-user: set minimum uname for RISC-V
|
expand
|
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] -= env->thumb ? 2 : 4; goto excp_debug; + case ARM_NR_get_tls: + env->regs[0] = 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_syscall.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) #define ARM_NR_semihosting 0x123456 #define ARM_NR_thumb_semihosting 0xAB