From nobody Sun Apr 12 07:20:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1771277593; cv=none; d=zohomail.com; s=zohoarc; b=UJIy//z92HvNKQNEhguYz/IgSS9c4cyxFknCjbfIR+x3nxLPJIDEHgureZrnfQ9MhWce1bhdQd5y8nJ0bWxC6f/+PGHUyhBshx87S+nD/Q8hte+WfigDg+J8mtfuVsAUmwZgLtOCi0k+rgWDXAu5hT2U98qD4tB1BA52/KwHpEM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771277593; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=V8wNVeXGsx4+MMgwpCdoiP3HRol652dz1JzpsDMD+6w=; b=FCsr4OQUT1eHQ16K4VTYaOFOcaqbgW+ItnLH08Ye5NnWtLU0AOFqlzJN4Z1SoD3fKJyTzypfyco2DFlgjDjZRC1iVM2sk6cdN4sQ8kKkRBBN33/e9ueIN89S8WVQjrfX6ft9vd5roHT7TwjNnaxdI3QCWkbqbLgtUno/33kzH+U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771277593875697.6592206320179; Mon, 16 Feb 2026 13:33:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vs6Cw-0002nC-R0; Mon, 16 Feb 2026 16:32:42 -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 1vs6CK-0000us-GP for qemu-devel@nongnu.org; Mon, 16 Feb 2026 16:32:07 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vs6CI-00043M-IP for qemu-devel@nongnu.org; Mon, 16 Feb 2026 16:32:04 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-4377174e1ebso2685765f8f.3 for ; Mon, 16 Feb 2026 13:32:02 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796a74704sm31690316f8f.16.2026.02.16.13.31.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 16 Feb 2026 13:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771277521; x=1771882321; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V8wNVeXGsx4+MMgwpCdoiP3HRol652dz1JzpsDMD+6w=; b=GBmUQg0DARuunz3u1v8BuoPKnU8ffmQ6/sRGf2Y5tqvo/LsLDa5yrVufmqB62Z/Wp3 xjO+3lLR6dH+7hu3SJ+HI4Xc3POk5ZM0s2Eo2GtinL3pc/3SI6ZfrU/y7/IulNDkY3yd i0nervPMEdMnKn1t9d0kQDecgxhlYnGdNGKxC0daxtAKmz7AvReT7fbMGJTrwMA2zsHm c+M2Nw59ED6X/y/mDZ88wvrJP1doMisvpISuW82tQU2Pf8t33r6S9lGLpyBTbmrsoZB2 X/wVXZkaS7c2xCPQ0TnQC/7LlVZVu+LJuipdBOT+mNFCvgsT/qeDQNkaOrfbRU0z7hHS jJLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771277521; x=1771882321; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=V8wNVeXGsx4+MMgwpCdoiP3HRol652dz1JzpsDMD+6w=; b=tgGO3SIt+C0hW7DAZ6X5Widx6gZ0t8y6arQX7Yz9CFNx9eBP82tm96Ps7rOA1m+62j IOqaUxy/P4YfwCcOhZYcCHVGBSWfk9VHMwj8OHQHI5i1DilPQe5IPHCixrItL2SbjGiX 2JX7d9t6vpdWnySvZKnJcayIKMEJK0n9JjJuOdzAgM6Rc4w4Mmkjc6B6GHoshkm6JtZA yO5N8xc4nOqLCMqavWg73cnwT5Pz7SxPLe0FIXQ1FwacjNODGBkWBhJjLT/MYPuanrRY +hB4/ihugCLTaj5lJ2MbQm7DmC3gIXVY712gmYj2A/Sy2wGDwb7VAul6k8lot20fKn5L Ppcw== X-Gm-Message-State: AOJu0YxCcrN/uYAX89s99I49WCJNl/sdKr3shHkdswYXT6W2RD9UeAoQ 9kMqkDf1HdHyCchSHFb9/FZ6FkeQO6+K78DDqpVe+I1knxnTrJScNosnnVbTfq5LTVgGJ67EE5s p7rrFivQ= X-Gm-Gg: AZuq6aIQXl66Ux+p2UbgLjonhXQIi3Ai27hMBxdH2q4dc4I5qO5f5tQulYFoL2U/SqU K6QSzwQhfi8J/HXh3iOgMvl+LMNKUNeK+KTXV7OtvLORxlxwiXHBU8VdjSAU9LHPzmIefi4GoQU 6cVFt9OHSoeZgZjK4PD6Q7WuVqTZW7zz3Hkx6L2WkS2A9c2ubq+x+4jxz+FvKDca8KqPo+Xr94P icjU4pFZ21Z1uf5LwbPx1NXc4nnj3kNAARjLcuFwWpXDiG8NvXbWk/6PB8VR1342kX7t9qAufs6 iMrPWwm2xcf50f+oC8YB3e8LTo8ZojDMlxnQ4CPhhcbUR0VKE4mR0AvbaIwi7QI+vD7wrxNn4Dy dnXvi9bBsql/O+I1QSMYa0jLft1i67hlem36RKcKUIhFVS8l7rWCk7mOHi375wJzdOrM6rBgx47 0e1vt+NMdPnmzIvFnyP3zFW7EBo6zPsNi6XZkaiKoKx4ec+z5qOTCnCf3YpaSceELICnj39UIpY 3zLtHKOLIM= X-Received: by 2002:a05:6000:1843:b0:435:e3bd:5838 with SMTP id ffacd0b85a97d-437978dd2fcmr20770738f8f.25.1771277520693; Mon, 16 Feb 2026 13:32:00 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Nicholas Piggin , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Paolo Bonzini , Chinmay Rath , Artyom Tarasenko , Pierrick Bouvier , Laurent Vivier , qemu-ppc@nongnu.org, Harsh Prateek Bora , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 5/8] hw/m68k: Set graphic display dimensions generically Date: Mon, 16 Feb 2026 22:31:18 +0100 Message-ID: <20260216213121.47122-6-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260216213121.47122-1-philmd@linaro.org> References: <20260216213121.47122-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1771277595028154100 If a dimension is not set, have the machine init code (q800_machine_init) set the default values. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Reviewed-by: Mark Cave-Ayland --- hw/m68k/q800.c | 6 +++--- system/globals-target.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c index ba32da2fa45..ded531394e6 100644 --- a/hw/m68k/q800.c +++ b/hw/m68k/q800.c @@ -560,9 +560,9 @@ static void q800_machine_init(MachineState *machine) TYPE_NUBUS_MACFB); dev =3D DEVICE(&m->macfb); qdev_prop_set_uint32(dev, "slot", 9); - qdev_prop_set_uint32(dev, "width", graphic_width); - qdev_prop_set_uint32(dev, "height", graphic_height); - qdev_prop_set_uint8(dev, "depth", graphic_depth); + qdev_prop_set_uint32(dev, "width", graphic_width ?: 800); + qdev_prop_set_uint32(dev, "height", graphic_height ?: 600); + qdev_prop_set_uint8(dev, "depth", graphic_depth ?: 8); qdev_realize(dev, BUS(nubus), &error_fatal); =20 macfb_mode =3D (NUBUS_MACFB(dev)->macfb).mode; diff --git a/system/globals-target.c b/system/globals-target.c index 989720591e7..e3f7d846ac0 100644 --- a/system/globals-target.c +++ b/system/globals-target.c @@ -14,9 +14,9 @@ int graphic_width =3D 1024; int graphic_height =3D 768; int graphic_depth =3D 8; #elif defined(TARGET_M68K) -int graphic_width =3D 800; -int graphic_height =3D 600; -int graphic_depth =3D 8; +int graphic_width; +int graphic_height; +int graphic_depth; #else int graphic_width =3D 800; int graphic_height =3D 600; --=20 2.52.0