From patchwork Sun May 2 23:18:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 430474 Delivered-To: patch@linaro.org Received: by 2002:a17:907:764d:0:0:0:0 with SMTP id kj13csp1226167ejc; Sun, 2 May 2021 16:28:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi7Cqri+pVBFx0Si+1VnI/mLoJJxeal6AghcC6/y0ALQ72yjq/trFox39GqjORZa4EYFd0 X-Received: by 2002:a6b:b8c3:: with SMTP id i186mr9321227iof.38.1619998137129; Sun, 02 May 2021 16:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619998137; cv=none; d=google.com; s=arc-20160816; b=NAy86zXqJ0YY+LX7nNNFqxO9MJN2WMqbddcMzmgfHsNP/gKzJIuyKBZBYWzL8jJR9L ti+FqG9D8MQnIS3syxY1CivzU00T8lpHRuOm6+llQi4b4U1tGyabKElDCcMEmE8Wtwd4 MIrzNU8dkOx0y29U143UPPvqo432QBXcCjt5uTVE0hZraILESIMWgarf2GRFh+BzTO8p eEjDBA5rOmye4cQ4Z+Vh5DxAT167be2ws9G4cbwo8K0gajES8r9PqIx9L8d+g8RU6LTt BOyl9SoWj+nicU7lVi3d7POpx/DGBwzS4gk60qQ+WjWXygJ8XYMMymiKeNdJZy3pK2ND qXFQ== 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=d8CBczrHncTC7jkXzgGz+cyQf3ESCXlA91ntw2lzZG8=; b=yMDcEqiIKZ4ZsyL3L+g0oFkSaMsPd0hB1+Arc7Ex/wa8fileFqcNClr2Sbai0OV6t+ MVCetMI3OalIb26Wskql1yt4LTdr2Lyiiz4NFG9H3G0g1KZEucq7+HdQ9N3nZyiX5OyB kMSfRZpN6YLigNvxF/Vjyi0/dH17UEVIs+lfB4S+UiIGrCC7+UesJET25OgVqQS6loVc X2AN4IwcEXRaRciFerU2zZuq/HC6/87wBcSeCvKSaK1efqXJWPgbsZmf08fqY/InLKNd amOAp9ptZJNJEjidI95hy47cA0fd0TwkxM5JsteprqzW8BtfRQ4AvJai4M5ra44aLWq/ OSxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E+rva+qJ; 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 i9si10560903ilr.157.2021.05.02.16.28.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 May 2021 16:28:57 -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=E+rva+qJ; 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]:37110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldLWC-0005da-Fm for patch@linaro.org; Sun, 02 May 2021 19:28:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldLMV-0008EZ-56 for qemu-devel@nongnu.org; Sun, 02 May 2021 19:18:55 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:36512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldLMT-0002tC-Gx for qemu-devel@nongnu.org; Sun, 02 May 2021 19:18:54 -0400 Received: by mail-pl1-x630.google.com with SMTP id a11so1869772plh.3 for ; Sun, 02 May 2021 16:18:53 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=d8CBczrHncTC7jkXzgGz+cyQf3ESCXlA91ntw2lzZG8=; b=E+rva+qJrH5ryjX/w0DsX04yeyndYJamgacOvmFmRACHYpAs0grm6ePy18ilacQAsA xr4WDjYfbs+tphG5T/95j8JjFoIZWoqnlIBy7bM4zmHOqh5lxHMQLWdPeIPmPLXgcy7E Rfc28rHjHfuhdvSDpBDoKqfRQnI365+Fz1t8qM7vQRzXDbotddOL7cIhuDHk+p0aXw4x OpXQVYLXxGki1aAaJhF+AElbz5ZX14NAYnYwFV4iWLfGWvNdy2xq/5HfG0udX395MwNm /CD18DqC+6/+tbH57860V7mhuwzVI+abWLIHx7L4zS5LZ9B93TJS/06d9hmSS1tZZb5v qV0g== 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=d8CBczrHncTC7jkXzgGz+cyQf3ESCXlA91ntw2lzZG8=; b=hrx+tox4vmEuide3fV88h/PC+5S7ovCJF0fpTVWDwNLa0OJZMaZwFRmEgWLGOEOmuA qU6kzH/qLervf5EFp5MGybOJYKdeyFSTMV3uNVg2mJ+pAAlFDbEchInuzCpUIdquQgyP zPrDZJFjukrOsLJDJ1Jj/X8FPXZ/0ZF/fU/WmfId1EcU7pztdnNouK3Z+oOCJua0aHG0 wHaxsJWcIpW0gjSIv7un1+9445vVu/F3j6VHhQmzBAiMxKEaJfCIzsZ77D0xZ38Q/CLD MGyuwpNf/tfMTU3Ms3nOAEtqqp62mihqkslxs+ZwfLFop5OPS0xrWASp014YDrbOPm3F 5+cg== X-Gm-Message-State: AOAM5334R2EIlxJN05BJ2VvPdAa2CBKfnK11ZbiO3C7JEtbuXKJJolMv Z9a1u6Fu1Uw8SHFHSx5dkhe1IPF7Ycmo3w== X-Received: by 2002:a17:90a:d17:: with SMTP id t23mr5025999pja.163.1619997532215; Sun, 02 May 2021 16:18:52 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id k17sm7146236pfa.68.2021.05.02.16.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 16:18:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 08/28] accel/tcg: Inline cpu_gen_init Date: Sun, 2 May 2021 16:18:24 -0700 Message-Id: <20210502231844.1977630-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502231844.1977630-1-richard.henderson@linaro.org> References: <20210502231844.1977630-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It consists of one function call and has only one caller. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.25.1 Reviewed-by: Alex Bennée Reviewed-by: Luis Pires diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 9841eb3fb6..d55ecbe195 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -245,11 +245,6 @@ static void page_table_config_init(void) assert(v_l2_levels >= 0); } -static void cpu_gen_init(void) -{ - tcg_context_init(&tcg_init_ctx); -} - /* Encode VAL as a signed leb128 sequence at P. Return P incremented past the encoded value. */ static uint8_t *encode_sleb128(uint8_t *p, target_long val) @@ -1331,7 +1326,7 @@ void tcg_exec_init(unsigned long tb_size, int splitwx) bool ok; tcg_allowed = true; - cpu_gen_init(); + tcg_context_init(&tcg_init_ctx); page_init(); tb_htable_init();