From nobody Fri Mar 29 06:24:24 2024 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1623343317; cv=none; d=zohomail.com; s=zohoarc; b=FEVhlG2MygsM29CNaeYbNO1hD9Pf+KcOMmcOH8ijDlYM38HUp3RLyzfcQJbScy2mtp3D71A+129CdABGogn06uGbGZ/SJZyRqi80x35Ybni0wmhpRhUScFhKmhuWZBoRsheamHEq3IjuXaoZX88vUbxiudOww0U6q8YYFP2ajzU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623343317; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=jICL2E2dGsyW6wqVaOWDQKDgLWC/P6azjECe17Eegzc=; b=krRnKKi+sWf2JJhI0ul6JSJafY2g/xtFocOsGJha/ftb1n8W8JaodnD2MOQnm22Y4iJWOz3nyqr84BO2JWMrTPtN17SiwqSBimgl1uqoMkUKZ300n8LQmKwSb5tMAi2lN7r6Iz78AdaRACafzc0vqrL43KGElgQHCkBGJez5E7k= 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+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623343317453688.6792017585238; Thu, 10 Jun 2021 09:41:57 -0700 (PDT) Received: from localhost ([::1]:52122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrNki-0004Ku-9g for importer2@patchew.org; Thu, 10 Jun 2021 12:41:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrNjZ-0003fz-Bu for qemu-devel@nongnu.org; Thu, 10 Jun 2021 12:40:45 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:39866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrNjX-0007sG-LN for qemu-devel@nongnu.org; Thu, 10 Jun 2021 12:40:45 -0400 Received: by mail-pf1-x433.google.com with SMTP id k15so2089900pfp.6 for ; Thu, 10 Jun 2021 09:40:42 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id t143sm3565208pgb.93.2021.06.10.09.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 09:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jICL2E2dGsyW6wqVaOWDQKDgLWC/P6azjECe17Eegzc=; b=xDZG64OuydqR2jtN1JpiL2dKjMLq5oPJxbGTWM6FZBxmWlPn3QgDoloqkVOx0gEvgR Aek91gW53Cx25BoVwHx9F3yGIiF2oUXtWOYFPlEvW43Wv++mJvqfT/aAy0YTTFS+TtRX q4Hn/m7VVvGBqHDYFPjGS9ZAiEpmPGaZkLWdo1vnT5m+g/HdQCN2oZcy8Z/JBq6h5NQZ gwNLfWKKyFCLJHyYSMfqM9wEvcdXeYyyVIzFOfgGPw638RsX1nNBGMZLTbmBLoXd6bVj HI9xlal3/yIW+mwxKZsXVEoXCMpjim4vlw8jCPpv5ucQbwVWSP7fyv5HmVUwucIEKaEW ZHeQ== 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:mime-version :content-transfer-encoding; bh=jICL2E2dGsyW6wqVaOWDQKDgLWC/P6azjECe17Eegzc=; b=F1gEtDe24k/ZU3YGzmkDsqf5dUO2+W72CAQPBcl0iSuH3XflGtTEsR/pMeuyWC4LBm OzJOnFic53B5od3XKk8eaegKVC6jzff4cfRv2IIZ7qQhFVkL8iyU4HCivpCAtAlxYk00 JEmypgBn0z1MVwAamank49THNgoKoMLsxalRkpR6xfj1Eh2ZRo5ruITMIVxfg/MKBCA7 TCAUGPzdoGsmSMkH1Udrje/pp01xyR+q5S/auCTvmEuDt37IqpghiBcDA48mAGu07XPo M5lJPWswwFA8qSJkTG3zHy0LQsvUUp0hGQ44nSuAWHzBqyjJqnt8v8rBRebqZQSklHmV r1rw== X-Gm-Message-State: AOAM530QAzpmI4WMjhgMHtcDIt0psSYizbx6w9f8A4wYSz48mS+0bVNS dbkrDQoDvHiPltNeGQzuJi7aKPhumRyDMw== X-Google-Smtp-Source: ABdhPJy1sZ1j4geIR2e2fjlsQu3NP7JjkDQqHw8QsnDLUcAOINCT5U2JxqePW5TUFgqrJX+49luxtA== X-Received: by 2002:a63:d455:: with SMTP id i21mr5780053pgj.263.1623343241709; Thu, 10 Jun 2021 09:40:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH] accel/tcg: Use MiB in tcg_init_machine Date: Thu, 10 Jun 2021 09:40:40 -0700 Message-Id: <20210610164040.233820-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Suggested-by: Alex Benn=C3=A9e Signed-off-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Luis Pires Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- This sits in the middle of my "Clean up code_gen_buffer allocation" patch set. Alex mentioned it during review, and I had already made the change. This is the only patch in the set that has not been posted and reviewed. Rather than re-posting the entire set, I'm just sending this one and will queue the whole thing to tcg-next. r~ --- accel/tcg/tcg-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index e990180c4b..1ee89902c3 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -32,6 +32,7 @@ #include "qemu/error-report.h" #include "qemu/accel.h" #include "qapi/qapi-builtin-visit.h" +#include "qemu/units.h" #include "internal.h" =20 struct TCGState { @@ -115,7 +116,7 @@ static int tcg_init_machine(MachineState *ms) =20 page_init(); tb_htable_init(); - tcg_init(s->tb_size * 1024 * 1024, s->splitwx_enabled); + tcg_init(s->tb_size * MiB, s->splitwx_enabled); =20 #if defined(CONFIG_SOFTMMU) /* --=20 2.25.1