From patchwork Wed Dec 21 05:03:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 635590 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp3319059pvb; Tue, 20 Dec 2022 21:04:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXuRkd1rYreScn8vOTfCdWvjq4NKxVqrU0jrVFUPV4gt5xm3j1vPXuDrpbaEe9nzOOHSIqL3 X-Received: by 2002:a0c:df94:0:b0:4c7:662:c7be with SMTP id w20-20020a0cdf94000000b004c70662c7bemr373120qvl.1.1671599048000; Tue, 20 Dec 2022 21:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671599047; cv=none; d=google.com; s=arc-20160816; b=YWkyIDq6I9qyNxiOBtxMaV1DW+dVeLjxnVndTQxmUyTT4oQEolKf8HR9rWj0ZWinC0 cQEnN4KAHamazwXWN99dqu4aMAPPG1P625DZC7PT4vlCInIEjkfEmkIgg95yb8vMucP+ Pq6HFtz9ft4LKwQ1gFStPHeS3/k3mRZ5oj2BZSlZ/PgakGuG3qRzCiQ0wsHfDk75gTwr OXJ7StterpVF9i7927RrdxeOPgdZWElwOBm7rJx+K4PGeZm/eO6YBMBuxrKZvdFPVao4 H/AWPXs8KQjk5RB5B6Bvk5lk1wbBpYJJoX8R1+OW/u1no66DyLnEMF1FUA250WrTy0PV F6tg== 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:cc:to :from:dkim-signature; bh=lQgJmIQMrjWysce1e2je5afVIp4tHra/146j/kBBfUs=; b=lZWyg8sUI9zD9zJn/P2P+9IZHXaepL06IQCHpvxuWh0aV1cF4e3fKvo37PmEAOsmTB NfzRJHm7lOJ1CCf+rFenHtaODpZLcuJLt1zHatE7k0L1pmCorgfQ1wXehUKtRhCpx4kd i6S07CSwxcgOYnL9CyR9SIqkx2UUYsuwCfbuqTei1cj7wMcN5kIalkZX552qLzakiva5 IPsN2oHcMDvDhKOuiWTrzQHdUU3CC+pVgBJKdJdGGvZa2LoSPkqGZN/TiO+8hVkfEb0u njVlfBQI3mimF68kHMDKbNoByXZa73TuCYXyLDm5Eq9zOdV6JF3NV/g4jnZXMvoYs6jD mSXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kAQnHQsg; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a5-20020a0562140c2500b004c70b1a154dsi5739583qvd.55.2022.12.20.21.04.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 21:04:07 -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=kAQnHQsg; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7rGF-0002D0-Ho; Wed, 21 Dec 2022 00:03:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7rGD-0002AS-ON for qemu-devel@nongnu.org; Wed, 21 Dec 2022 00:03:21 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7rGB-0003N0-8h for qemu-devel@nongnu.org; Wed, 21 Dec 2022 00:03:21 -0500 Received: by mail-pj1-x1029.google.com with SMTP id hd14-20020a17090b458e00b0021909875bccso2582089pjb.1 for ; Tue, 20 Dec 2022 21:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lQgJmIQMrjWysce1e2je5afVIp4tHra/146j/kBBfUs=; b=kAQnHQsgu44gP5gPgMf/OQjjIS/hmKLyKyHKQKiagmDKt2RiMn4Ici3SqYIHssP4rf FnWGN8mUKQPUnQtfpStJQ58K+BdHYc/iOMbvNU62fC4YGEpmQSOk8CYBBgWGJkUFjVjn FOPPFPTkp17TDQooqhiLT8nto0962RnLcbBoGkiqDJwtivRCpyZl1oks+jCGtne6//gf G31Pnl2gfD25mvca4ySkeY2XmH1yxgtIvFdE0/HZ7IJtErc1YeinvmPRshAlSzpGUD5+ 68zT3AYh0LpWQByeXUSE5QDGfRucaW39tszFjXyAKRkgXhMyBQ0lD4fFvBJ6TRlmY1E/ K/lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lQgJmIQMrjWysce1e2je5afVIp4tHra/146j/kBBfUs=; b=EsnzX1FcEGnfSGaqVSjSgEGnkQmPTQRVz8D4lPMLrknu9Ae/yl5XTQ6NOYEGaPV2HK fYVd5U1hvHw482XAgx6pkUnk7RPEDYB0TvFtXfY8/YocYiHVU6mxfaMz0R6uuHVrpwnu z7jGsQufxObYCDafs1MXHj8tvnd046Sqj7geRRJYRHZ8FG84bayusTiU9xVNANs0Mo82 PVBjJNfmX6wMYU9lStE8HQ/EGwSl93ZOGuJsRfS7CVpDg/GBE7wmHmNrLRNvRAfXk04O bYDSP6SjmT6wdpxNaSiaeFrZPPDQun3eaYGakMQzSyt2JQg8XfMN4/Hv90dfQp0d5a55 JruQ== X-Gm-Message-State: AFqh2kql7soV6xbC7yHhFSDD7ja/WYcyF6AM9INK4IOUmoBCU1OefQj0 F7gkgaFYFCaAqMVX5E4LtN6P9enS7oiZOm6e X-Received: by 2002:a17:90b:188c:b0:219:44fd:fc0a with SMTP id mn12-20020a17090b188c00b0021944fdfc0amr17734778pjb.4.1671598997798; Tue, 20 Dec 2022 21:03:17 -0800 (PST) Received: from stoup.. ([2602:47:d48c:8101:3efa:624c:5fb:32c0]) by smtp.gmail.com with ESMTPSA id a8-20020a17090a688800b002135e8074b1sm390645pjd.55.2022.12.20.21.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 21:03:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PULL v2 02/14] accel/tcg: Rename page_flush_tb Date: Tue, 20 Dec 2022 21:03:01 -0800 Message-Id: <20221221050313.2950701-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221221050313.2950701-1-richard.henderson@linaro.org> References: <20221221050313.2950701-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Rename to tb_remove_all, to remove the PageDesc "page" from the name, and to avoid suggesting a "flush" in the icache sense. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- accel/tcg/tb-maint.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c index 0cdb35548c..b5b90347ae 100644 --- a/accel/tcg/tb-maint.c +++ b/accel/tcg/tb-maint.c @@ -51,7 +51,7 @@ void tb_htable_init(void) } /* Set to NULL all the 'first_tb' fields in all PageDescs. */ -static void page_flush_tb_1(int level, void **lp) +static void tb_remove_all_1(int level, void **lp) { int i; @@ -70,17 +70,17 @@ static void page_flush_tb_1(int level, void **lp) void **pp = *lp; for (i = 0; i < V_L2_SIZE; ++i) { - page_flush_tb_1(level - 1, pp + i); + tb_remove_all_1(level - 1, pp + i); } } } -static void page_flush_tb(void) +static void tb_remove_all(void) { int i, l1_sz = v_l1_size; for (i = 0; i < l1_sz; i++) { - page_flush_tb_1(v_l2_levels, l1_map + i); + tb_remove_all_1(v_l2_levels, l1_map + i); } } @@ -101,7 +101,7 @@ static void do_tb_flush(CPUState *cpu, run_on_cpu_data tb_flush_count) } qht_reset_size(&tb_ctx.htable, CODE_GEN_HTABLE_SIZE); - page_flush_tb(); + tb_remove_all(); tcg_region_reset_all(); /* XXX: flush processor icache at this point if cache flush is expensive */