Message ID | 20210128082331.196801-4-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:24d5:0:0:0:0 with SMTP id f21csp645790ejb; Thu, 28 Jan 2021 00:24:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCExNX7F0URdl2MfW3jpPqYMjFjNXd8UzXKQRImTwY6Czfa2ULPn/vzLdMlqo1spyOyHyp X-Received: by 2002:a25:6914:: with SMTP id e20mr22955791ybc.321.1611822244845; Thu, 28 Jan 2021 00:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611822244; cv=none; d=google.com; s=arc-20160816; b=I2NmQAfNK1Acfs5RhLfvg00NktfzN54jaG5d+/2+uYnsApmdHVvWu4+FiUl7YokQyb vKSx6lfGEbl8FcJb0BD2vFmbrZC+GXhlIV7ocXucosq/bm7MizGguNZTH6i0GE+Njhe4 1oEhvIzKuWEP4dPrmShL2BvZhwCh+sFgXAY0nuoGQkTYgORC11ZBZ8PQv2uBBfD0egO6 wQd4GojKXm+5RF4Uwvc/Y4oCjGktIvpnNvx8YE4ME+aiav7pmOc+1YtEgpFhhmuWUeWE 1xrT1dSklHxm5L9o8t4Z6BSEdyu3/AdFd9Opb7mpZi6t/CdjzXz/KWzMU+AYbKGHh1sC pXVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=RcEW49jm5cwG5H+YCNoBE8sdtPqM5Tz+Y2fGrDe8qGg=; b=twi4y0wjzhtOtRnDOol2hbCnu/vHd+qof6obgD2qTogKu4GUyZsRV8yzIBPZqJyVDC WMMi20f9EDwCGNvrNLm2i/zUpmjoH9uCBDmMJL2qu4IEgNEAHYYzLM8bjMtX8Y/XvnIF rcGjgbYQNYTjXXzEANkmPd4cMA8F4Cw0n6ie3Ip1Ka1+6kNfCzYoXE9ynlJ58UUl/X8j 8XRc4HQhPAh/3ATdMvjZ1PuNbQiEfZwVOLpqvX34+iEeqDJE1h3y659mGUmzyoh2CGk5 65ASd+Km8NDIPochQy2jd/hAeAwLmWEUm05YRx3rXfmd1x8Val+wbexdtGbOksNKsmVJ FkAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxlXSSgi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 23si5592869ybe.294.2021.01.28.00.24.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jan 2021 00:24:04 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxlXSSgi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1l52ay-0005ik-92 for patch@linaro.org; Thu, 28 Jan 2021 03:24:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l52af-0005dk-3B for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:45 -0500 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:36247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l52ac-0005cr-MY for qemu-devel@nongnu.org; Thu, 28 Jan 2021 03:23:44 -0500 Received: by mail-pf1-x431.google.com with SMTP id u67so3528947pfb.3 for <qemu-devel@nongnu.org>; Thu, 28 Jan 2021 00:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RcEW49jm5cwG5H+YCNoBE8sdtPqM5Tz+Y2fGrDe8qGg=; b=cxlXSSgiClkq81TrqpRtxPcNVIFWeuVfDXZmv7bqU53wj6PjOecGXe5wASn08IUnFY VHtSgY6N/jsArLV/yDryu6BB8jVc1+S696eJDSc32V5H+bbfT409Y6i2N/02sy0fBMkS FxYkuXrEY9elwBseOy7XWmhgTUTVRxrnqMVBxRsfbQRTGHRrHTX2M3zgLRbZurGkRigv G3fhE2q9+XuB9lhx0Oq8Qd5z3MTXZZU3bSO74NPFe8qIVjWzFNdYaepV16+YaaG2EP3h vZeBlXBz0nonyX0SpHloAnMcFaXZDDMHKldocPYL83SHiRJmJR+c5HjAjplT1KKvIMnI 6hbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RcEW49jm5cwG5H+YCNoBE8sdtPqM5Tz+Y2fGrDe8qGg=; b=CaWzhWUxifjnryXJuilgREGkhsvBLK+BMQqqGZPSRXYTFqipMWn+BTkatPcA2krjdb WKn269GkdhKvWj33pjuChMIyBBR1zYgdyrpSUoQDPujMlUJF+kH/Kdtdzlzb/VGb1Xo/ zcmbT/W47nRjRsQWpDHnJay15nvyXio67hayroz2C3dowDJAlvrByUf8+e1hX7T0kx9G QLFZwWqqCmGlfrAYDmpzQLQl8t3wG4XK4Xzxi6T5b6Xbq/AtBp0xC/KV31m4VJHgGr/W OkueuEEF5CmJNAcLXrQhwCJbf1Hih46+lQeTmLn+21yJknq8s5TQTWrsKCZ1OPkI8EtH FDqQ== X-Gm-Message-State: AOAM5303taxkQ5cyp8lw6RS3aHdfzCYG+znxYpzQv+Scw2RL/4lwNaR/ rcgHR53vpqQ+SX+2ePwiVuEtDoXrLSsGM81R X-Received: by 2002:aa7:86c3:0:b029:1c1:a025:b2ff with SMTP id h3-20020aa786c30000b02901c1a025b2ffmr14746805pfo.14.1611822220749; Thu, 28 Jan 2021 00:23:40 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id s24sm4658292pfd.118.2021.01.28.00.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 00:23:40 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 03/23] exec: Make tci_tb_ptr thread-local Date: Wed, 27 Jan 2021 22:23:11 -1000 Message-Id: <20210128082331.196801-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210128082331.196801-1-richard.henderson@linaro.org> References: <20210128082331.196801-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 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: <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>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: sw@weilnetz.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
TCI fixes and cleanups
|
expand
|
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 125000bcf7..f933c74c44 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -544,7 +544,7 @@ void tb_set_jmp_target(TranslationBlock *tb, int n, uintptr_t addr); /* GETPC is the true target of the return instruction that we'll execute. */ #if defined(CONFIG_TCG_INTERPRETER) -extern uintptr_t tci_tb_ptr; +extern __thread uintptr_t tci_tb_ptr; # define GETPC() tci_tb_ptr #else # define GETPC() \ diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c index 7e1992e79e..b183db84c7 100644 --- a/tcg/tcg-common.c +++ b/tcg/tcg-common.c @@ -26,7 +26,7 @@ #include "tcg/tcg.h" #if defined(CONFIG_TCG_INTERPRETER) -uintptr_t tci_tb_ptr; +__thread uintptr_t tci_tb_ptr; #endif TCGOpDef tcg_op_defs[] = {
Each thread must have its own pc, even under TCI. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- include/exec/exec-all.h | 2 +- tcg/tcg-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.25.1