From nobody Sat Sep 28 22:18:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1610050860; cv=none; d=zohomail.com; s=zohoarc; b=bUzNQqsB5RHysogok9+6MDV9YbblJioknQ15pY+AUoZunFO6pJ6uCsOxwIH7ecglvbVddaL7xp8VMcJbGHFEBd4R5sK1XQtkh36d91DUXB4C50R8yJV5cWftRCu2YzaMGT0xC/OWz0vRflvy1oW3ikmbmTAdMrjWP46SOwe+244= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610050860; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=gV4erddw36/IIPMNTq7/TG+v9uQaJ4h6PGeY7YFnJXE=; b=JMQKuLM9Q6LOiG14x1a74aHGV7mqCZnLbAiRgfIoohiOxcreH24Zzkdz1kY6t1jm4y93tfwhcY1S68guaJ2ytdEwb48VMOCE8AEUPZhkE1wK34ByCA+zwI/t63gdwjk7oqP6TGLl8XEw/1PMT1MW5QGR6HRY6Al6WK5rYfzt7Lw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1610050860677670.1239361015308; Thu, 7 Jan 2021 12:21:00 -0800 (PST) Received: from localhost ([::1]:59342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxbmF-0006H1-Db for importer@patchew.org; Thu, 07 Jan 2021 15:20:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxbgY-0000nv-O2 for qemu-devel@nongnu.org; Thu, 07 Jan 2021 15:15:06 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:44492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxbgX-0001Qv-3u for qemu-devel@nongnu.org; Thu, 07 Jan 2021 15:15:06 -0500 Received: by mail-pl1-x62a.google.com with SMTP id r4so4138876pls.11 for ; Thu, 07 Jan 2021 12:15:04 -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 v6sm6516265pfi.31.2021.01.07.12.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 12:15:02 -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=gV4erddw36/IIPMNTq7/TG+v9uQaJ4h6PGeY7YFnJXE=; b=MGdg3hW9mpqrANmVNloy8K1Y7iwoqp0r2s1vS9+Vri0F3szG0BMbplepxxRQJ5QcmZ lM6sBiblhbM2+Jn5ChYMW/G6OcyIxoUOB9JVuLcKDd9kyptWJhsjHnRSaTJhAlZ4Sm22 hUWjIyv6Qnno4Gu2YIyS6XfB/655ZMMd2O2bkVhSjKAI4Vvreik/FRi7DLfyQV3peAQ/ dDrF5kG7n02oNiC+uEhGV7cODwLuYXkrsBVCiYhq+kg4IABfDjN1xDONweIatlIybK/x ooJy3vq8waBEzEK7OwLZSH+tcbgMlaWVsKXnP3GIA/OuSHhbVjjPOsh3TYyImhFIgDPb lxGA== 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=gV4erddw36/IIPMNTq7/TG+v9uQaJ4h6PGeY7YFnJXE=; b=Mdr4sz4wQ5KnjKCQZxv2fxRTXMMp49Adfix5ofRC2XTqjxx2pYdK8zypR86r1GJz1A 1fJ1gaSI0YbRhuURlXc9/EjjCxnJ/3VVkEF89p5laCp9eNyVDz+a7XvTJFmlquPYniZS wDfgm6X4XhZ736kgHnU2BYCd1OhWZiNw5Y8/9xlsDrx18QAihoq5NBaaO+9Nqd9p4/Y+ YdTKBYUbg0AuaRmkNtu1zru8qrUEFP9zv4NPYCoktKeratGZJSOrlGTl7QdDlMn3jVqb y7Q/UOWscoSHp7MY5V9GBo91lXAJUhxmpiHx7+JatadKB5d/ZLQuTO3X7sskro4u0kBB UTTQ== X-Gm-Message-State: AOAM531JIuhvgPN64v1LeS9ZRtI474xDgkOAs+Cn89BGspXjkauxxDEw tvm+8oKzQNmUJzrOfVERgO5kUxn+lB1BjA== X-Google-Smtp-Source: ABdhPJxDzOInBRVXBtQAiBXXHHt9Ls7m+d6W+HiybxW2Vt4v6d9n+ejjV483PV5uE+Qdt9Vq/KjfVQ== X-Received: by 2002:a17:90b:46ca:: with SMTP id jx10mr183218pjb.208.1610050503123; Thu, 07 Jan 2021 12:15:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 06/47] tcg: Do not flush icache for interpreter Date: Thu, 7 Jan 2021 10:14:07 -1000 Message-Id: <20210107201448.1152301-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210107201448.1152301-1-richard.henderson@linaro.org> References: <20210107201448.1152301-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Joelle van Dyne Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" This is currently a no-op within tci/tcg-target.h, but is about to be moved to a more generic location. Reviewed-by: Joelle van Dyne Signed-off-by: Richard Henderson --- tcg/tcg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tcg/tcg.c b/tcg/tcg.c index 95aacc8597..9bdc450196 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1078,7 +1078,9 @@ void tcg_prologue_init(TCGContext *s) #endif =20 buf1 =3D s->code_ptr; +#ifndef CONFIG_TCG_INTERPRETER flush_icache_range((uintptr_t)buf0, (uintptr_t)buf1); +#endif =20 /* Deduct the prologue from the buffer. */ prologue_size =3D tcg_current_code_size(s); @@ -4324,8 +4326,10 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) return -2; } =20 +#ifndef CONFIG_TCG_INTERPRETER /* flush instruction cache */ flush_icache_range((uintptr_t)s->code_buf, (uintptr_t)s->code_ptr); +#endif =20 return tcg_current_code_size(s); } --=20 2.25.1