Message ID | 20201214140314.18544-2-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3028326jai; Mon, 14 Dec 2020 06:11:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoI2PLlzbHqEy29/17K7MwmJ18dSo7XcpVlWELe3iwXjm5vKbDyf8ybV+jWfNno9HHcCuY X-Received: by 2002:a25:6c8a:: with SMTP id h132mr16106444ybc.263.1607955095457; Mon, 14 Dec 2020 06:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607955095; cv=none; d=google.com; s=arc-20160816; b=KVsIDCSTMHgo0hlX1Wu3XmTr/lAHXMtlXTgvwPmUoJvpM4wv7pvIBIobmYrzG/0ZAL JZQ/LtKEriBJU37QG5fdR61kLBsuj5CxNmF7jVx1Dbumw/2z1y1OrANx0th6VtA04j3s Om2V+UYK0shTdMhk8UT2pntZLQtEPML4bHhqO7VIHsKkqlKfkTVVwB8rquh9LEDBCHSS D2MJ5M4SjosgVRp7f1CaAwiXexnwfHpRuLx9h5iNKAc0TDcX0rwiVgjdixhvo6e+ByVG FrZN2xIUM+TJ25VfSQbNwBaHA3angdQqU1dts86S35xo3DI1FMNNwlKUsfzzBVLIsaK5 1PiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=0sMgt4Z0WrQXqhn3zEIbyMUGDzX3mT9jw9a9qSAx+tA=; b=XBb/Uv26aEmLGsF5qLPa44CMpZ2UboP5HDDTH59pkHJVWwMYhvgJdpPkeF++alz2cU Q2IvLjJTjjG+fYy6TgNM8EAgszz31GznBjBRXbQEc0cI5fc+1xZwZ1ijsW/9N2ZiCCz+ P/3gceab6lpEKVkaP7msN87N1wPdXVSGViWnCi34Ia7ARdYKr6se4sYTlMshhxA6D7VZ 7OBUDhHX6zT0+yvofcFJ2hgidkjS0/e50QOPBnaDRyMr7puhgRAN8Yy6raB0cx/u01Q6 dnbQwEmmAHMjJuyCiyGtVJ6vSNFRDCfFwrw9oqDlvCc5i1RQWqBeDkmsVr17cTPXyMmY g3uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxfCyiuL; 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 y3si13504266ybk.108.2020.12.14.06.11.35 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Dec 2020 06:11:35 -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=MxfCyiuL; 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]:58856 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 1kooZa-0000Kj-SD for patch@linaro.org; Mon, 14 Dec 2020 09:11:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36102) 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 1kooRm-0001Y9-8D for qemu-devel@nongnu.org; Mon, 14 Dec 2020 09:03:30 -0500 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:39284) 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 1kooRd-0003tf-IQ for qemu-devel@nongnu.org; Mon, 14 Dec 2020 09:03:29 -0500 Received: by mail-ot1-x343.google.com with SMTP id d8so15771377otq.6 for <qemu-devel@nongnu.org>; Mon, 14 Dec 2020 06:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=0sMgt4Z0WrQXqhn3zEIbyMUGDzX3mT9jw9a9qSAx+tA=; b=MxfCyiuLfFp8pXMYOZRypiU3ZlEQtSHHG9PZcJ+08XL/K8b9HyfW7IDRbV1zGGHEvo 9oBNAbrEPukelQ4fRAHejBytl01MTaYz5NXiSBAF59wkoQrQknpQihVFVfKIrngM0su8 boj+lPHxcBWigcP/dcJdRL6q2tItwaScM8PqvRYSJD/pEQywlnxMgJTkct+6zKIP2bCQ +l50ZRpGbfM7az1dsfA1zP6N5VO99dJ6NzvrqQSeK6TxqvO0csWQTJ7A9PB8e+Oy52oW E7DcfdQr8grt/NfBYG3iMx1CbeVNPPDZ4SCmfVJigoKJZ8tJe3RbRes+6pf96Jc2YuCp oAKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0sMgt4Z0WrQXqhn3zEIbyMUGDzX3mT9jw9a9qSAx+tA=; b=cubulGngXwzJS5c5cZjRvxxfnYe28OSoexzKQVZedxlRc8+ENRmUfVjbA2YLdxMxdE 0oc+ae8RHFNpG5/6uFcZvd5qYV32od5F/1zmBKGJ5i9zp+z9A2ee4W8JufUZ3uql70mf Bcaco+lzDFhe9M9BAVTSxgxF5od59nioCej7Ayx4zOBdM2SBMXDbttuShkBgcUJGCSdj zs7kvYGsuERNQ06OWwNKQZt7zVdMEHVWbiChKLTphNIiECf1Sb1vHuiRx6nZxkCRdjSf 4cuBAo4F5bSS6s0r/T9fPbhVo77wux6MI+txLHwg5Oe3/WTDt+rINScWIXPuEeiQVciD 9dFw== X-Gm-Message-State: AOAM531Cb0oE2xRN5cYO/F1HHiSpaEie5LSOWndXoKq8XcT6gQf8+ORG GZVw6qh7ZsuHK14+qiVUCS1q1AWyo9Ny77vS X-Received: by 2002:a9d:32b6:: with SMTP id u51mr18872273otb.119.1607954598082; Mon, 14 Dec 2020 06:03:18 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id t24sm3940146oou.4.2020.12.14.06.03.16 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 06:03:17 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v4 01/43] tcg: Do not flush icache for interpreter Date: Mon, 14 Dec 2020 08:02:32 -0600 Message-Id: <20201214140314.18544-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201214140314.18544-1-richard.henderson@linaro.org> References: <20201214140314.18544-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::343; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x343.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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Mirror map JIT memory for TCG
|
expand
|
On Mon, Dec 14, 2020 at 6:02 AM Richard Henderson <richard.henderson@linaro.org> wrote: > > This is currently a no-op within tci/tcg-target.h, but > is about to be moved to a more generic location. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Joelle van Dyne <j@getutm.app>
diff --git a/tcg/tcg.c b/tcg/tcg.c index 43c6cf8f52..3b3f366acd 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1077,7 +1077,9 @@ void tcg_prologue_init(TCGContext *s) #endif buf1 = s->code_ptr; +#ifndef CONFIG_TCG_INTERPRETER flush_icache_range((uintptr_t)buf0, (uintptr_t)buf1); +#endif /* Deduct the prologue from the buffer. */ prologue_size = tcg_current_code_size(s); @@ -4319,8 +4321,10 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) return -2; } +#ifndef CONFIG_TCG_INTERPRETER /* flush instruction cache */ flush_icache_range((uintptr_t)s->code_buf, (uintptr_t)s->code_ptr); +#endif return tcg_current_code_size(s); }
This is currently a no-op within tci/tcg-target.h, but is about to be moved to a more generic location. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tcg.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.25.1