From patchwork Thu Mar 11 00:21:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397374 Delivered-To: patch@linaro.org Received: by 2002:a17:906:774c:0:0:0:0 with SMTP id o12csp12428ejn; Wed, 10 Mar 2021 16:25:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzImJVKMf8ai4vrrjhMbtpFKrrXTjvH4Llx53dRw4kBUgts9qMIVrEHGfgE3t5TEX8lKXSI X-Received: by 2002:a5e:9612:: with SMTP id a18mr4260525ioq.209.1615422310843; Wed, 10 Mar 2021 16:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615422310; cv=none; d=google.com; s=arc-20160816; b=kijuBDAaW9Y6VKxWhqFxvkdV+NTXa3o7cXhhbVrqxhe3RkM/HseVbgS+L5rD3klfeI KensNksmJh2Ia5FFQrbMQQomxHVlxr8LW0GdoXWTjE+goO1LsQ+azpbDxUf3LQJe1Iy+ kr280jPDWEFQxT41Klio+JS74DkY3DVgkJpdf73uSdaYbOaq2tjVlMW+yTkTMD/DSroi 23tBVxUFTQYtBQDiOryA1tIWw3TSd8FoNoNagLZFZTEFFrdBZ/GWovw5UG9icLc2yaSF 1QPfegLF5sGSzOANdgvfBYRnNIuvuln5VsQtAotKWUNZzKnaTYSfzRvkxg2OFaZUeduE RtZw== 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=gYenkpP8ctTtsYsLcAkytH/ttOLIsxpHVMJ4BoHnX1c=; b=m8s/WtSVaxsivfM9JVa4Znk9YGu7U5cfkGsEh20xPx0AZON2hc8idky5bZzNtDbIaX 4w2NuKSME3iDlPEAS+ykOV+LeAuursQ9YgDU/7G8z8Cno4QVex7/gE0oZ6n4naEcNTge gM/2sgcJ/tjNb+uQhqxVgP0RxY9mTHSLkDMB6WSwZR+DE1/yhd/NgLa4IAFgtRUznpPA TdKKZObKoNCYjQDBfJjvwb5KN1FcX83V+iSK/FpgxFq6zhUzhUWP10Cz3ybZwXchCPdY d9SsCTQ10rZCyjNkC/vmCS+iH8gdogOY0yfkvPRcmB8yl0wmEy4wm37D6+GmXniP1jLN +7rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N2oZjyCK; 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=fail (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 w12si1107781ilo.156.2021.03.10.16.25.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Mar 2021 16:25:10 -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=fail header.i=@linaro.org header.s=google header.b=N2oZjyCK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK98Y-00088T-6V for patch@linaro.org; Wed, 10 Mar 2021 19:25:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK95m-0004kb-0p for qemu-devel@nongnu.org; Wed, 10 Mar 2021 19:22:22 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]:42036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lK95f-0001LF-N0 for qemu-devel@nongnu.org; Wed, 10 Mar 2021 19:22:14 -0500 Received: by mail-oi1-x22b.google.com with SMTP id x135so16751080oia.9 for ; Wed, 10 Mar 2021 16:22:11 -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=gYenkpP8ctTtsYsLcAkytH/ttOLIsxpHVMJ4BoHnX1c=; b=N2oZjyCK0TMr06TruYcD6TK9JHDHd/fj1XmNVdezWfp3DZRRUuV6QVSjj5NuXgxUgH ftE+OJibKCSWZvt0fPqkbBTnp+zUU/qzg90zsgbb+mMcvb0ibySIFQUgP9DPjQGZ75ZU KS6JDSPqJBkCewPU0g1KLYuwk9tdru8T4Usiu6jRpI5WhllehO11fgGzG+inUMEDAYUv D8ZpyyId0QLsMo7MHuCr5getFgHwxW8HnK4D4JNQ67+A+rm94xGR7lqAowVX2EcD0s9+ o140J4Xu7LahRW8+lLyCAw/IggRwgQraIRwdmknZjkeibJgPD0PZJpbT2NyshXQNMd5z aS4g== 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=gYenkpP8ctTtsYsLcAkytH/ttOLIsxpHVMJ4BoHnX1c=; b=l2EwsDVLX6HDDci5DF5wcouHzAAU3EHqLs1i4e0E3D5f6dliSYD9dWgwP2uxanCUyy +gc8BkI4Ey01bLMECOe40doPhd/gKQ9gsCW9BxUqpy0Use9inr829aKmzKk3VxfInj8J vKyRkSBCuPzB94VrotVrmYej/t2NJg/sCoDDSCJk1/2bGNYKA8v1Obvp1t/j9YnoJl+y R2n8Bx0vjz+EYmMk/tdRQzUbHpwGX4CKSJws9/E67l+stXbD6bZlGYJ8ew1p/U9vxUXK MEQvggCkU0lkCAC7bzjWwlYRHqGl9kfZj2WMIVoXOr9vz4a92TS3sZgjEI3WpFRrTZBM gaew== X-Gm-Message-State: AOAM531akq2nYzsOP79nd8gZbpfNx9qWJWLIt+fa/HyjMjVbA8eX/HvW Pp7hPFOUsU/OKoN9AixOJGaB5ERSzzZqFnHo X-Received: by 2002:aca:ded7:: with SMTP id v206mr4244317oig.149.1615422130720; Wed, 10 Mar 2021 16:22:10 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id a6sm300962otq.79.2021.03.10.16.22.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 16:22:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 09/26] accel/tcg: Inline cpu_gen_init Date: Wed, 10 Mar 2021 18:21:39 -0600 Message-Id: <20210311002156.253711-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210311002156.253711-1-richard.henderson@linaro.org> References: <20210311002156.253711-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22b; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22b.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: r.bolshakov@yadro.com, j@getutm.app Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It consists of one function call and has only one caller. Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index b9057567f4..6d3184e7da 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();