Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2C2CEF48C5 for ; Sat, 14 Feb 2026 11:54:00 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vrEDO-0007p8-MV; Sat, 14 Feb 2026 06:53:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vrEDM-0007oc-BU; Sat, 14 Feb 2026 06:53:32 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vrEDK-0004Nc-N2; Sat, 14 Feb 2026 06:53:32 -0500 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id D91FB5969F6; Sat, 14 Feb 2026 12:53:28 +0100 (CET) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id L_pfypCQvas1; Sat, 14 Feb 2026 12:53:26 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 961E45969F1; Sat, 14 Feb 2026 12:53:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 944B55969F0; Sat, 14 Feb 2026 12:53:26 +0100 (CET) Date: Sat, 14 Feb 2026 12:53:26 +0100 (CET) From: BALATON Zoltan To: =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= cc: qemu-devel@nongnu.org, Chinmay Rath , =?ISO-8859-15?Q?Herv=E9_Poussineau?= , Harsh Prateek Bora , Nicholas Piggin , Artyom Tarasenko , Pierrick Bouvier , qemu-ppc@nongnu.org, Mark Cave-Ayland , Laurent Vivier Subject: Re: [PATCH 8/8] system/globals: Build as common code In-Reply-To: <20260214021240.58657-9-philmd@linaro.org> Message-ID: <6c85073c-e70c-3cb2-d2ad-57c5177dab88@eik.bme.hu> References: <20260214021240.58657-1-philmd@linaro.org> <20260214021240.58657-9-philmd@linaro.org> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="3866299591-825164378-1771069674=:43665" Content-ID: Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3866299591-825164378-1771069674=:43665 Content-Type: text/plain; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: <93fe92c1-7408-6144-c23f-854558efa8f9@eik.bme.hu> On Sat, 14 Feb 2026, Philippe Mathieu-Daudé wrote: > Now than all targets have the graphic dimension variables Typo: ^^^^ that > initialized the same way, we can move them to the common > file unit, having them built once. Remove the now empty > globals-target.c file. > > Signed-off-by: Philippe Mathieu-Daudé > --- > system/globals-target.c | 14 -------------- > system/globals.c | 3 +++ > system/meson.build | 4 ---- > 3 files changed, 3 insertions(+), 18 deletions(-) > delete mode 100644 system/globals-target.c > > diff --git a/system/globals-target.c b/system/globals-target.c > deleted file mode 100644 > index ffa6c308b59..00000000000 > --- a/system/globals-target.c > +++ /dev/null > @@ -1,14 +0,0 @@ > -/* > - * Global variables that should not exist (target specific) > - * > - * Copyright (c) 2003-2008 Fabrice Bellard > - * > - * SPDX-License-Identifier: MIT > - */ > - > -#include "qemu/osdep.h" > -#include "system/system.h" > - > -int graphic_width; > -int graphic_height; > -int graphic_depth; > diff --git a/system/globals.c b/system/globals.c > index c33f6ed3902..34fd3ce9c72 100644 > --- a/system/globals.c > +++ b/system/globals.c > @@ -49,6 +49,9 @@ bool enable_cpu_pm; > int autostart = 1; > int vga_interface_type = VGA_NONE; > bool vga_interface_created; > +int graphic_width; > +int graphic_height; > +int graphic_depth; Where do other machines get their default values from now? This used to have #else 800x600x32 which is the default resolution when not specifying a -g option and some machines may depend on that. Where that default is established now? Regards, BALATON Zoltan > Chardev *parallel_hds[MAX_PARALLEL_PORTS]; > QEMUOptionRom option_rom[MAX_OPTION_ROMS]; > int nb_option_roms; > diff --git a/system/meson.build b/system/meson.build > index d91703d3dcc..579e8353d53 100644 > --- a/system/meson.build > +++ b/system/meson.build > @@ -1,7 +1,3 @@ > -specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files( > - 'globals-target.c', > -)]) > - > system_ss.add(files( > 'vl.c', > ), sdl, libpmem, libdaxctl) > --3866299591-825164378-1771069674=:43665--