From patchwork Sun Mar 14 21:27:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 400122 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2920891jai; Sun, 14 Mar 2021 14:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR8KqxhSFsVmjl4rIC7nFWDRgvu9ua2EQjf0ZnWht5RkLWuvcbY/MHT2CaGqE5X+3uEnLM X-Received: by 2002:a25:e6d1:: with SMTP id d200mr11905024ybh.265.1615757419849; Sun, 14 Mar 2021 14:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615757419; cv=none; d=google.com; s=arc-20160816; b=JhI+Z/llbXAmizr6lGtm524sxr+umuFJPkzBJb1i0YeLI8uKmmuDZLg00gsIiVCRXo Xo855Mgb9d3tGeUiEcZSMkAszpoT75QKTLPcT+hdy2H5C1vaqhcKHTzm1Y3/c8nzu4x/ mPymAtNfnHJJtv/mFH3Suou/mo3ArRsYGwpZn4QHnw65LbQKK+5Q2DrrUunfnmzAg6gR cy5d69V0SEgLDPo/onGjuPLj2AIDh5gDAIcbmmkS0BG1HGmHIYsq1TJs+NTn2ez6nlAr wGio992XPhDrhVeE3i2wtC7M3wm59I0peikpVixPcjIGm64MOeo2pmuZlw5T3IszGdPK MM1A== 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=yjdtKlRm3WuNdcNC9EUZQ7YJqY8dzEyQHbjSnP7J42Q=; b=sS5zSwNeW+nNv0GPJ2oQaoHxOqF/tDOQ4dnugS1nLXvAi2/hr0TBGnkjvbWh5/ieEG 9YhSo5puFeohcKpPRHo76CNG+zfI+aZQcYYzLr35Ig0JHrBTdUoqPdGN191M/fMB0S5V ohboD35blsgWOv9bnRA+m8yD1J4QBJYtWIP1caIVv1ajJ72+WrpbXwX5C8djU9Pxitp7 X+63k56yBEwLsIpJEBMWLKsoiMScWy5rWBhr6nU+b8VI8YtphAM1v4sCjyOwPqLPucxQ fqvfDnJbWkXfLyfR+9V8hFqj8Bf/ZdfLxSlgPVxwuK6Fz8ix193NpAkRyBSmnAbh/0Ny ODVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="FnH7s/f1"; 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 w3si13638820ybg.75.2021.03.14.14.30.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Mar 2021 14:30:19 -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=fail header.i=@linaro.org header.s=google header.b="FnH7s/f1"; 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]:35422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLYJX-00010Y-6D for patch@linaro.org; Sun, 14 Mar 2021 17:30:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLYGw-000606-A5 for qemu-devel@nongnu.org; Sun, 14 Mar 2021 17:27:38 -0400 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:45928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLYGu-0008BW-Rx for qemu-devel@nongnu.org; Sun, 14 Mar 2021 17:27:38 -0400 Received: by mail-qv1-xf2c.google.com with SMTP id t16so6881805qvr.12 for ; Sun, 14 Mar 2021 14:27:36 -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=yjdtKlRm3WuNdcNC9EUZQ7YJqY8dzEyQHbjSnP7J42Q=; b=FnH7s/f17efMqPJ9qLstuHjwS5rRDyjEDSMMLbZdAB0t9XllQLAf6lw1eThds0ZpIC KYnbt2B25RT/NM+Zdgst+0ulgVqhi8dIvWTg47eyKRyMeeZ1PpcDK0VOAyI4ttBZf29m DhGt+JUdFpesssIM2Rggp//3a1TlshpfqfxLOv0GATsi1co77fTayVxjY2wa/ZWcIEX6 ngsa8PwNBlKX7lhQQ2cs2aSyNLBgql/8ZzWSZvJYbzZbRN3cqqIcsL4FwZHLehWIwfpI MIdlVlKO7G8pURPWVXsaWESbsaLwcXdZk/1C8QCz55SOFDKE6krjeEhqVRIDXLAsE8JZ wTmA== 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=yjdtKlRm3WuNdcNC9EUZQ7YJqY8dzEyQHbjSnP7J42Q=; b=HYgXvzq7O9vq/4zL6Oo8zrFfRzJxyjfFnzTI+VRNv5HmlngF6Fifk3rTVsB8nc3gz2 N6csesut2V2qV4G51bMDImQ0AVKeNMHpUngPundKT59L3FDgwEcvE+yNBppzjFzTPJ8o Yu4EywfUbWeBZ+mB/VjAZjB4qpxZy5rOd7jWR0N7Ig0ahq2rMrgKQ8NpLZyL3ThocXd3 xTjcnBwr61EmCv0HBc/EW1GvzxZRrOURVe5yti/6rzDEuUnfzW11FgytNRYFFngPbYz5 d8pxtFZqR9BJ1DdAQCjTSL2xdZguVuArcl+7TBceN3F72exu3CGxppV7JHiHb5Xo/h6G KJyw== X-Gm-Message-State: AOAM533kjGQklGHhgLOB7mTth7y0EwayTdYcmrigHy6uPGbgoUEQR7rd BHBC7dET//WSRkrkr9rKd/aKkUexBt9OVz4o X-Received: by 2002:a05:6214:268c:: with SMTP id gm12mr7883189qvb.36.1615757255954; Sun, 14 Mar 2021 14:27:35 -0700 (PDT) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id t2sm9337749qtd.13.2021.03.14.14.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 14:27:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 08/29] accel/tcg: Inline cpu_gen_init Date: Sun, 14 Mar 2021 15:27:03 -0600 Message-Id: <20210314212724.1917075-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210314212724.1917075-1-richard.henderson@linaro.org> References: <20210314212724.1917075-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2c.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, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= 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 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();