From patchwork Wed May 31 04:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 687240 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1062148wru; Tue, 30 May 2023 21:07:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68sOj6ZW/8SSoqZ/4vtwfuD2KOiyu3FY0SwSP9v+DrnVFRKm2ff7n/lDwFdV7AaIpi/bYr X-Received: by 2002:ac8:7d0b:0:b0:3b9:e0b2:9a49 with SMTP id g11-20020ac87d0b000000b003b9e0b29a49mr4958168qtb.60.1685506057381; Tue, 30 May 2023 21:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685506057; cv=none; d=google.com; s=arc-20160816; b=rWJGZsPxn2tZqwnsq/B17o3EEaycCddiaYeEKTJjMCrNPSSmH86FnKn9oG2qwQDPxV MBpiCXmEFj2uax/cX4qxUFpNWwYcn8pAda59h2BgH3KAlx4JPsViyJnKLo6lG4vaNY1A Xfa2sd+bfc3cQAqGoIcPFJFPCEdvlgi6fI6Vt/DWW1DUUuZ71wA2jFPwA/fpvqxy9ZV7 RowjyU0Un8zPdH8cCnOjyP67jBdRrUH+PA2jmYT1B9IOLNDR5odmwsDr3n8ymTZ1hdnN QHOgwT9kAovJsEhEAT7eztnzOq3I6j01O4YYkBgFIKDKa8VNXMVoeOsPNE3r6hq5hFzz byjA== 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=g9Z7ehG7+swOH6zB5dODu6bYg//xIYbQwbOdJN6xAFw=; b=NwoUXLIXTk3S3WhJhc4Bm9EZOrcHvME4xBSpAhbW6WAQSLVd3R05HZsW+bxah2O4v+ U8xNbUEJiwk24h79gt2IeDKhI/tu48j2cU9VDWcTJhCIFhQ1weZDkye1/azhN4y+EXh5 BQQg03jAZ2mmAnQab0+Zw3c7UNe9vPGaFPe/+BL2kBdORIx935HI7lC/Xhv/iq8KXvMe CL/PJCitTzuxmjT/iqsi96TlUwLo/2x6x0im9qt3XDeP3fZvuQQGF2GXw4C1zv0Aok/X /25kMG7LOCEqcTGYChIZYd1u01xqySwGUbmytNhfY2Mqja8b0y0nh5eCP63dcfHtF8qu eqeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nEz0OSDv; 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 a4-20020ac85b84000000b003e38f2f61dasi7688956qta.577.2023.05.30.21.07.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 May 2023 21:07:37 -0700 (PDT) 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=nEz0OSDv; 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 1q4D46-0007NZ-7P; Wed, 31 May 2023 00:04:02 -0400 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 1q4D44-0007Lv-Cu for qemu-devel@nongnu.org; Wed, 31 May 2023 00:04:00 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4D41-0006Hf-RF for qemu-devel@nongnu.org; Wed, 31 May 2023 00:04:00 -0400 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-75b0f2ce4b7so334366285a.2 for ; Tue, 30 May 2023 21:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685505837; x=1688097837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=g9Z7ehG7+swOH6zB5dODu6bYg//xIYbQwbOdJN6xAFw=; b=nEz0OSDvPXLzVXOgg7OFOgSwfgRwNJHW9XIFd34CZWk2KMXDYjiZojRPMLAeOtBIGD 3/LqyuTW8PZ8ob1EfydMITubWgnt4LWRwoZBB5mcNW7ZOcPiWXADFLGRubmGLOYhwzuc ShYoPb7XnjX96H4pkTDNF6oB55NLMdHmQnzwQ8YzCGPAh/UuwboK3M5EeBMkcO7Ndnhi a/cZTA/McaEPShcBdEODsNEmBqp9gBY/MXylEx5pjaDPEgtuzUYNwR2bWEabmUyNXt6C ziEFhjzfzxk9UvomXmVKd3UZNvLy8d8/dmijZLoSzWPIOFTeWZr7UkSql4XuexT3cPYq /smA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685505837; x=1688097837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g9Z7ehG7+swOH6zB5dODu6bYg//xIYbQwbOdJN6xAFw=; b=TZyHnMadLj5Wlfs2YxjhHH8fQWaISp0rH+qZlwf33weOpJNQsZfX09t4tUO8qjFOOK GJPZRiQ0CMm6R2UP72QoQ0OCzRPYC9UWN0OxqQy79o2i7eFN6CExGCoDd+Fzs0FmahCS CeaeEOSXDCK1pT7hS2oOInC0cu5bVCJ+kMYpCIwFqcufx1YF9gVFgoR/UJW6c7jRO7NO PsWoLE2B22eA9Q9azH8eQ89bsaATWGUAwSgsyBfcjgo7qhn1TzXId+nrbOLOBJZSOvlw 0NFYD21MmS82z8vUdRa410F6JAGCBdmF7erAX+4z2bg6wEcRJQLItKagOHtbnFekM6fo BWqQ== X-Gm-Message-State: AC+VfDy1fdWjSpPHq/QomdPJmaAVCw9WvHOIVdS3TeUk8FRN1642UIqO l03FcXWPPnQMzvvOXK5CY6bLM5yS8tQ+7ME3+x4= X-Received: by 2002:a37:489:0:b0:75b:23a0:d9ce with SMTP id 131-20020a370489000000b0075b23a0d9cemr4333924qke.36.1685505836842; Tue, 30 May 2023 21:03:56 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:1cd:ec7a:a720:ce9a]) by smtp.gmail.com with ESMTPSA id j12-20020a63fc0c000000b005348af1b84csm194814pgi.74.2023.05.30.21.03.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 21:03:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 33/48] include/exec: Remove CODE_GEN_AVG_BLOCK_SIZE Date: Tue, 30 May 2023 21:03:15 -0700 Message-Id: <20230531040330.8950-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531040330.8950-1-richard.henderson@linaro.org> References: <20230531040330.8950-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 The last use was removed with 2ac01d6dafab. Fixes: 2ac01d6dafab ("translate-all: use a binary search tree to track TBs in TBContext") Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/exec/exec-all.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index f01c7d57e8..698943d58f 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -467,16 +467,6 @@ int probe_access_full(CPUArchState *env, target_ulong addr, int size, CPUTLBEntryFull **pfull, uintptr_t retaddr); #endif -/* Estimated block size for TB allocation. */ -/* ??? The following is based on a 2015 survey of x86_64 host output. - Better would seem to be some sort of dynamically sized TB array, - adapting to the block sizes actually being produced. */ -#if defined(CONFIG_SOFTMMU) -#define CODE_GEN_AVG_BLOCK_SIZE 400 -#else -#define CODE_GEN_AVG_BLOCK_SIZE 150 -#endif - /* Hide the qatomic_read to make code a little easier on the eyes */ static inline uint32_t tb_cflags(const TranslationBlock *tb) {