Message ID | 20210105171950.415486-2-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp311567ejs; Tue, 5 Jan 2021 09:38:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6zmi3W2UzaYIfOpVxL3E0kqWgmdpyAdenjJn90x9XGA0uMMY8ax6/Xven2YIZtsyJb/Sj X-Received: by 2002:a25:ade2:: with SMTP id d34mr709874ybe.15.1609868318178; Tue, 05 Jan 2021 09:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609868318; cv=none; d=google.com; s=arc-20160816; b=d87/hzGBx6k0343nMX5RyBrWG8E6xI0qogkEasC9ig7oktxGq4F7gSuDePfaCZxpzz vp0sZtPiDMPxJTIGIQyIhx7mgn7Q0GryKY7tNBqbYHx56wCGwH6PMAdQgPZrDUP4f49W Z+ULkWiLgvloU0hP7vXRbkSp+jfEJcZvVfC62Q+dIoe2Xriqv8BG4/8aGbtJJEnY2k2m QO8ts5Gx9Dn/l6MrqIVdSSeUUydbueg11hfrdse8JMn0k5zplUg2UZKaAoAcH3XeRdMj kSGJNaeIfdxC4LH6b1q7heunWmIPstrGMwnUpqL5xBFdKNOjoGiuJqMS/5eSb26+QjLU b9Rw== 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=kNa3juN30sBbMGsW4bu1mvrrXIbWt9bpEcnE51uKtNA=; b=RTGBL1zRfvYz/0AUb5vkpS+kQ4Nn+cZ+DnrAx24XOD8IO+2QXoG1LOr4RyYnr8VZ63 idJE3TudSj/ezeI2B5dxJTqyrJMlh/1wqPwe1Q6ibG6xQGvLGMgOAHdh9bzABZKt/b6r noJzTAKr/Grabf37FZCqrZbtkN18U1FL6ablbM7gyoTGkhYn/HXzroXo+i6fGyn5srJ8 o1Q2RDswRPXmcp4TCQ+jMs7LpeCkvbrmH+uCzbjMck/tfW5tDj8w8ltBQ2XPLSK6sLpL 0Yq+tWnC395KD/aKVfTFM7Uy1UWGcEbwxtzhz6YNklo6P/hEJQR3b5NUo0+AYvFR233u RQcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cftMLHpd; 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 t29si522787ybt.474.2021.01.05.09.38.38 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jan 2021 09:38:38 -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=cftMLHpd; 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]:52886 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 1kwqI1-0000AN-KW for patch@linaro.org; Tue, 05 Jan 2021 12:38:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51184) 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 1kwq09-0002Fo-9M for qemu-devel@nongnu.org; Tue, 05 Jan 2021 12:20:09 -0500 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:45955) 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 1kwq01-0006Qi-Jq for qemu-devel@nongnu.org; Tue, 05 Jan 2021 12:20:07 -0500 Received: by mail-pg1-x533.google.com with SMTP id v19so255043pgj.12 for <qemu-devel@nongnu.org>; Tue, 05 Jan 2021 09:20:01 -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=kNa3juN30sBbMGsW4bu1mvrrXIbWt9bpEcnE51uKtNA=; b=cftMLHpdS9X6G84jy/FqciZTdu1cuomAirdWqNYDhwQL+3acq975VoZFlitNBRglQ5 mn/eLmW57v2WoLmJfQY/jQkEOvQUqky3X0pLDzb/NAz1MayZ+WJTK/799D4+p6e54XtR 4EZt/bnf++jFL4R4Mzb5qxJsZjo6f01dudYinjwPdWCIrfUEhyfpeQkfoa2b4B91/TL8 cNpZVBGyfH2a+AZvtmqgLxuAG/m8aNYb2fvNtt3lybsTVQDduiNeh0Q7eeMi4KtUPfcG 6JPubMhV70qmIVdbz+HWa1xnZ/U2olMeiV/m+KNF1D6J2ufeDYWDuwglCJlo2HvuJFs5 5pXQ== 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=kNa3juN30sBbMGsW4bu1mvrrXIbWt9bpEcnE51uKtNA=; b=W6pcoAegUySeYxm9j1/As0I5czXbPFB5aSOdO411M+F2LZMsxbUgwKMfR1evSvAyyp R6F0N7gzNApwglZLQoO5q+HfI0/+R0zc6fpSf8jVl8FXy0QOpDr6rZ0t/lRQD9NONLjN ZdWGyeX/v7qkAc4OqYHfv9kytlRAOYumJgtgklSXkvWT0e/sYfuyAloGIDTl9yDjjn+n beufOL2ENyb3Ugooj51lMESe4r3jsegTzcn05hFl+o9C64BIBQf/9IMqG9r1Kd118XcS J5edy9r8hou/ZzhQLS2A/fyPmmfWVBQkJLMtyo8QAgGefOtLWro8hfqhvu0cz+2DeTU6 Rjdg== X-Gm-Message-State: AOAM532VzQ4TIt6SL6vBDJ5Lpo7F9wKjTYHfa2LnChbOgDXIjXLbzyCk qGI0o537yR9npUB/f5FW+bUlYR2n3lE5BQ== X-Received: by 2002:a62:b415:0:b029:1a6:8b06:68f4 with SMTP id h21-20020a62b4150000b02901a68b0668f4mr193965pfn.43.1609867199868; Tue, 05 Jan 2021 09:19:59 -0800 (PST) Received: from localhost.localdomain (rrcs-173-197-107-21.west.biz.rr.com. [173.197.107.21]) by smtp.gmail.com with ESMTPSA id u12sm2010pfh.98.2021.01.05.09.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 09:19:59 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v5 01/43] tcg: Do not flush icache for interpreter Date: Tue, 5 Jan 2021 07:19:08 -1000 Message-Id: <20210105171950.415486-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210105171950.415486-1-richard.henderson@linaro.org> References: <20210105171950.415486-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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: Joelle van Dyne <j@getutm.app> 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
|
diff --git a/tcg/tcg.c b/tcg/tcg.c index 829d4296e0..df2857dc88 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); @@ -4323,8 +4325,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); }