From nobody Mon Feb 9 18:18:55 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.zoho.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 14870212825535.644331265984874; Mon, 13 Feb 2017 13:28:02 -0800 (PST) Received: from localhost ([::1]:59606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdOAD-0005xW-6Z for importer@patchew.org; Mon, 13 Feb 2017 16:28:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdO8L-0004Xg-6h for qemu-devel@nongnu.org; Mon, 13 Feb 2017 16:26:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdO8K-0001F2-2f for qemu-devel@nongnu.org; Mon, 13 Feb 2017 16:26:05 -0500 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:36543) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdO8J-0001EV-VD for qemu-devel@nongnu.org; Mon, 13 Feb 2017 16:26:04 -0500 Received: by mail-qk0-x244.google.com with SMTP id p22so8992157qka.3 for ; Mon, 13 Feb 2017 13:26:03 -0800 (PST) Received: from bigtime.twiddle.net.com ([1.129.9.91]) by smtp.gmail.com with ESMTPSA id h40sm8311480qtb.6.2017.02.13.13.26.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 13:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=96AsFrK7AqyTzUlt5ObWIZuJJVuuw7pkCnRK0nIPxgI=; b=TP7CoMHMwjRxXy26JNobuCfYlWEjrhS2ztpBpE1nWiRNfHkyQNU6JErDXkgF8KeZMT YchfJDceWE065HxM9avZtqMX+pqCXqZAW6jfm3Qn3uNYs/PYP2zQkbyF/9ESG4dOu+oN AGS9atR6PyNmWUdFWGpgSEojco3cYdmvYgI7ySsbVpUIQ/Y0Il6OMBMMjFHN94SZACXD ooxChZE85pbdlS3UQqsU6OxjxthNrH2YEY6Mne0f/DRm1UgA6Ih30gLJxdzlRmMruOPo OuKq5ugk1svkjKPS0XHEMl6KghOc/JlKkoP7fHBYo+OpeYRWEVb/0bVCufrj3nebE9f5 hSiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=96AsFrK7AqyTzUlt5ObWIZuJJVuuw7pkCnRK0nIPxgI=; b=gopfEEnftndnnl4FOPq74y7U+I4zCqrzWDNDekrCBPHvywcrFbCdYw+O7hPfm801u/ zSTqtkBT/ypvzb06izdSHxC2N2y+nH8bS671U6A02lsrWr76yfMWOM94TRwpuOv4+No5 KYCGpq3i71pGKCT6s0Z+mabnjfchSfK4MVjmTBAOL+czgPtV6DAb1mY5DkQxUecj4bCv inznL/XqwknilwY3e2aq5sZoCEYZmStUC48e9z3KX/Gy1DMAWoXB5RGRn5/h4oPtAQpa px6OVkZwH1VUzkr8/QzfWoQq6XtIGFHDuBzZeHp1VvGGfrlsqQ+Sw8wvrZ1bUVVhZI+o jhIA== X-Gm-Message-State: AMke39mG6iO8XpR/co0CVczjTRSMBLPImjsAf/7XeJhAM+4k5PORgByzbxRu3vpV69c9xA== X-Received: by 10.55.181.6 with SMTP id e6mr22734024qkf.298.1487021163519; Mon, 13 Feb 2017 13:26:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 14 Feb 2017 08:25:16 +1100 Message-Id: <20170213212536.31871-5-rth@twiddle.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170213212536.31871-1-rth@twiddle.net> References: <20170213212536.31871-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::244 Subject: [Qemu-devel] [PULL 04/24] linux-user: Honor CLONE_SETTLS for openrisc 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@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Threads work much better when you set the TLS register. This was fixed in the upstream kernel for Linux 4.9. Signed-off-by: Richard Henderson --- linux-user/openrisc/target_cpu.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/linux-user/openrisc/target_cpu.h b/linux-user/openrisc/target_= cpu.h index a21ed1a..f283d96 100644 --- a/linux-user/openrisc/target_cpu.h +++ b/linux-user/openrisc/target_cpu.h @@ -30,9 +30,7 @@ static inline void cpu_clone_regs(CPUOpenRISCState *env, = target_ulong newsp) =20 static inline void cpu_set_tls(CPUOpenRISCState *env, target_ulong newtls) { - /* Linux kernel 3.10 does not pay any attention to CLONE_SETTLS - * in copy_thread(), so QEMU need not do so either. - */ + env->gpr[10] =3D newtls; } =20 #endif --=20 2.9.3