Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229184/?format=api
{ "id": 2229184, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229184/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260427210133.6016-7-deller@kernel.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260427210133.6016-7-deller@kernel.org>", "date": "2026-04-27T21:01:24", "name": "[PULL,v2,06/15] linux-user/arm/nwfpe: Use thread-local storage for qemufpa", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "21d73cc1d9d13adce1b42d70423e52d3c5bc56ce", "submitter": { "id": 87076, "url": "http://patchwork.ozlabs.org/api/1.1/people/87076/?format=api", "name": "Helge Deller", "email": "deller@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260427210133.6016-7-deller@kernel.org/mbox/", "series": [ { "id": 501726, "url": "http://patchwork.ozlabs.org/api/1.1/series/501726/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501726", "date": "2026-04-27T21:01:22", "name": "[PULL,v2,01/15] MAINTAINERS: Add myself as maintainer for linux-user", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501726/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229184/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229184/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Nbqgvr/C;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4GK05LVvz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 07:04:20 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHT5X-0000JJ-QS; Mon, 27 Apr 2026 17:01:55 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wHT5T-0000GF-Ii\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 17:01:52 -0400", "from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <deller@kernel.org>) id 1wHT5R-0003V0-2l\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 17:01:50 -0400", "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id 22E6640979;\n Mon, 27 Apr 2026 21:01:48 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 92773C19425;\n Mon, 27 Apr 2026 21:01:46 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1777323708;\n bh=WKjvKh3WS9aFV3WDMKRIHdU/l7XY2HCHrBoFujAWcmo=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Nbqgvr/CVerZdmWVgwmLUzhS3e/nR+tOX8qqkPVj2F5SxsoPWfskiNl4Hs6vcVq5L\n WQvjxC/Uiu2bFpnpxEE4EDNdHUGgk7sopWfZhg94QuzSDjMa7RV+0GgcyymbgfYPyZ\n DnoFy97myfRqp968H7F+8NGZ9iWVSYfsU+8zxaGlVTmtS0mKYkuYEbxUcpkn9aviMV\n OSUN70zC8L0To9ST8NlSzjqNXIWng1c6vcqOAFXK3RfxHw+qJESs0boLMmEHrqc0eS\n 9PCPsYMJuN2itvIzajXF4W1McpBRau0AOaEUzlGys0rkIsEz/rn+jwqFTqtwxp7LSB\n rhK7c+ee93LfQ==", "From": "Helge Deller <deller@kernel.org>", "To": "qemu-devel@nongnu.org", "Cc": "Laurent Vivier <laurent@vivier.eu>, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?q?=C3=A9?= <philmd@linaro.org>, Helge Deller <deller@gmx.de>,\n Jiaxun Yang <jiaxun.yang@flygoat.com>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>", "Subject": "[PULL v2 06/15] linux-user/arm/nwfpe: Use thread-local storage for\n qemufpa", "Date": "Mon, 27 Apr 2026 23:01:24 +0200", "Message-ID": "<20260427210133.6016-7-deller@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260427210133.6016-1-deller@kernel.org>", "References": "<20260427210133.6016-1-deller@kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2600:3c0a:e001:78e:0:1991:8:25;\n envelope-from=deller@kernel.org; helo=sea.source.kernel.org", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://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>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "From: Richard Henderson <richard.henderson@linaro.org>\n\nFix the thread safety of the emulation by not storing a\npointer in global storage.\n\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nSigned-off-by: Helge Deller <deller@gmx.de>\n---\n linux-user/arm/nwfpe/fpa11.c | 3 +--\n linux-user/arm/nwfpe/fpa11.h | 2 +-\n 2 files changed, 2 insertions(+), 3 deletions(-)", "diff": "diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c\nindex 44783934b2..15888463f7 100644\n--- a/linux-user/arm/nwfpe/fpa11.c\n+++ b/linux-user/arm/nwfpe/fpa11.c\n@@ -29,7 +29,7 @@\n //#include <asm/system.h>\n \n \n-FPA11* qemufpa = NULL;\n+__thread FPA11* qemufpa = NULL;\n \n /* Reset the FPA11 chip. Called to initialize and reset the emulator. */\n void resetFPA11(void)\n@@ -154,7 +154,6 @@ void SetRoundingPrecision(const unsigned int opcode)\n }\n \n /* Emulate the instruction in the opcode. */\n-/* ??? This is not thread safe. */\n unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa)\n {\n unsigned int nRc = 0;\ndiff --git a/linux-user/arm/nwfpe/fpa11.h b/linux-user/arm/nwfpe/fpa11.h\nindex 20f9d2eb81..659d38ae3a 100644\n--- a/linux-user/arm/nwfpe/fpa11.h\n+++ b/linux-user/arm/nwfpe/fpa11.h\n@@ -74,7 +74,7 @@ typedef struct tagFPA11 {\n float_status fp_status; /* QEMU float emulator status */\n } FPA11;\n \n-extern FPA11* qemufpa;\n+extern __thread FPA11* qemufpa;\n \n void resetFPA11(void);\n void SetRoundingMode(const unsigned int);\n", "prefixes": [ "PULL", "v2", "06/15" ] }