From nobody Tue Feb 10 11:32:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.46 as permitted sender) client-ip=209.85.221.46; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f46.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.46 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1610902103; cv=none; d=zohomail.com; s=zohoarc; b=bov8i7Jx0rC1J0KJ7uiGfrS7thDRcTZOfYurXsAloJUZy+BP0ryQJGqiBAhzdCcsnxSgSnimksRTwA5z3hO4vNxygj03qSbSTF3LgilodAbWdOWwlUCelgvIFd4yjqIHhidgRYRu4jC1IRtlsqvdK9pv/aR9w46Q7uEeJLkjH/c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610902103; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xDfrjU7kI1sr1RDYArfADvyCVAF59u47MTJHcFAtFYw=; b=HI5RpqWJ11jLg8eFAa4JhGSagvxi4U0aioO3pPM5Pmb2Fy2/KXJV80tUkbuDFtpo/Y9jkWisvo7TiXVklrOpprl6G1LF1C59P1QroaRpduzunqACkqOw5b9O0869iJ7dt33zSrST0GjUOYzSGvKXUwxf4XakmFaurpIETmQN7SM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.46 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.zohomail.com with SMTPS id 1610902103111441.67458517998216; Sun, 17 Jan 2021 08:48:23 -0800 (PST) Received: by mail-wr1-f46.google.com with SMTP id v15so10542685wrx.4 for ; Sun, 17 Jan 2021 08:48:22 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id z8sm6534364wmi.44.2021.01.17.08.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 08:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xDfrjU7kI1sr1RDYArfADvyCVAF59u47MTJHcFAtFYw=; b=imypN1rpJz8e9ZiUVoWa5BvlKtQwgK3bobVSemLSV2fQI/G/nxGfkN3Dh/t3Jhbr3n 8bZBILuu60QBQ7xAoA8kQmQS5RAx5aIEtbXRw9XzgcDJsrmK0MuFeO76eEn2uPQ7g0/1 Pt6braFeW9twcm2rR7yOffloNtuZIfkOofdLP7Sm0JSS/BLaH25O2WbzPFN3YVbHI7xz BT8WHnhK3WGIA1OWM1AcunLhtiNjZ0u4DFbyreiYEi2Y3Mg6wvbI+0Q9In0HdFQPVNcJ 9cazlGS4KC6nXg3tHGgFe93hipJ8SVErgraOPNiCzHEEVJXgxOZIj7q8m/GdV4skKI/k IXLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=xDfrjU7kI1sr1RDYArfADvyCVAF59u47MTJHcFAtFYw=; b=Gcwljb6RyJnlk8kO4xj6lTutBuq/X4O65H8khd0NWT04H/62b6xYV3cVdUd94WYcLl GyHJBHcVhGElPP8URGI/VCXytK7dCCE5KuGjnuiZD6ruDnsNdxhDaItaMjgjZlmEeLfh gq4w/oSSFAPe3xtvAJwQf9qI3Vi4Lj4K7nvyhNwWHBy7DUd/2OPZQ27eRkkHrVtn0hDo yG8ajumuPW/5XsWHaihqq0ILSKR1IUlLlwaPBY+dZ3d8tazpFwGd0oVmUy4NIpCdE/Qc LQ8ccZAHnGlz2ZvsLthcrcMVTtmbO3K7KGIMDm0tsjHs5g1FdKTeXCXKY6cFZ+VnUcwA L9mQ== X-Gm-Message-State: AOAM532Kga//62baeTCEQkKQn30vqnbEgRsMzhuT20FjMQ5quhoJAudM uH0+rxdr9Rrmfzeu2yrrvrc= X-Google-Smtp-Source: ABdhPJydWQhkpkd8PD68Pwm/KDlDLBr8mI9TKOIEAKbpff8AfzxUeVQ/T4xf4p5ziObbNqPqkRJE/w== X-Received: by 2002:a5d:6443:: with SMTP id d3mr21803331wrw.422.1610902101470; Sun, 17 Jan 2021 08:48:21 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Claudio Fontana , Huacai Chen , Richard Henderson , Eduardo Habkost , Paolo Bonzini , Peter Maydell , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/6] accel/tcg: Make cpu_gen_init() static Date: Sun, 17 Jan 2021 17:48:08 +0100 Message-Id: <20210117164813.4101761-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210117164813.4101761-1-f4bug@amsat.org> References: <20210117164813.4101761-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) cpu_gen_init() is TCG specific, only used in tcg/translate-all.c. No need to export it to other accelerators, declare it statically. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Claudio Fontana --- We could also inline the 1-line call.. --- include/exec/exec-all.h | 2 -- accel/tcg/translate-all.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 2e5b4bba48f..516013e735a 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -47,8 +47,6 @@ void gen_intermediate_code(CPUState *cpu, TranslationBloc= k *tb, int max_insns); void restore_state_to_opc(CPUArchState *env, TranslationBlock *tb, target_ulong *data); =20 -void cpu_gen_init(void); - /** * cpu_restore_state: * @cpu: the vCPU state is to be restore to diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index e9de6ff9dd7..ca7ef6aa177 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -243,7 +243,7 @@ static void page_table_config_init(void) assert(v_l2_levels >=3D 0); } =20 -void cpu_gen_init(void) +static void cpu_gen_init(void) { tcg_context_init(&tcg_init_ctx); } --=20 2.26.2