From nobody Tue Nov 26 17:37:04 2024 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=1706541616; cv=none; d=zohomail.com; s=zohoarc; b=CNML7ozV5ymkaEvP9ITwl3W2ojoC6wm9ydMAcElmM0LmlxqN0GKP9dsexMy2OKQgQytv9zp1P5pxwlqyDv5KPpqwRw0cP/asecr1EM/WQK7eMW4amAR4b+XXJXucQt/6qIbgXTld6UD7Gpe5F0cQrDy6ktQtZ8FunBiZ3p/DrUY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706541616; 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=letmG5/Sw/UvLSNttdIXIs4OU6VOMo7YyUWWgNEfysU=; b=Oh+PQeZDIcInjV/1VP29+cKCyG93UdRSCqhTSIhg0Yl4eZ/Pmkzpm6oi1UZBFRN5xOcYTf3Uy8VGV/Bib0z9bVXNPNrACZoUBJbDjYYgatRRHk6/pC7mj6TxLVAUbfnwzlsD1UY8PHGAE8VxsmNg42mWQiRj3V2hk40WCl2m9OQ= 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 1706541616594573.6273699406378; Mon, 29 Jan 2024 07:20:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUTPm-0007eS-Ox; Mon, 29 Jan 2024 10:19:14 -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 1rUTPl-0007dw-Fx for qemu-devel@nongnu.org; Mon, 29 Jan 2024 10:19:13 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUTPi-0007V4-Sn for qemu-devel@nongnu.org; Mon, 29 Jan 2024 10:19:13 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3394b892691so1582828f8f.1 for ; Mon, 29 Jan 2024 07:19:10 -0800 (PST) Received: from m1x-phil.lan ([176.187.219.39]) by smtp.gmail.com with ESMTPSA id p7-20020a5d4587000000b0033af670213dsm92953wrq.110.2024.01.29.07.19.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 29 Jan 2024 07:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706541549; x=1707146349; 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=letmG5/Sw/UvLSNttdIXIs4OU6VOMo7YyUWWgNEfysU=; b=clGEcFZU8BN/Zn/kH9g16iJ4cMTkcy/FS2XiDEsNCCHyt0/lUSF94p5YNirerjLtSW zRMEYUbV3b2pB2ezHq88mXaISsPDFOmeh5kKU0MZO365mIzBM6VcUbwKburcjipzyvPH k8AdBXDa/4BK9BHlpLhN+Fh7yX8UHHF7rUsru8+OJkX/6CNGX8Z14IjE3bO2bEipjlXh rvf8QWC/y1+oj9Oggb6dOYmfmzznVYo1HMYOZgH5gfRs8UUdsVVbaGCJPJOqs+AXls9v 0CZsJ2PfCWrgoYx/iQDSj0gfGQYMSXR3s0yBU51AQF4rw9z+kFCKERT16AqFipWWgHoE xASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706541549; x=1707146349; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=letmG5/Sw/UvLSNttdIXIs4OU6VOMo7YyUWWgNEfysU=; b=ZnJfamAZdmb4hQAwIlL4WOhpqYE6H+SM2hd6xeGkgtDn8s7P5Uw8FR4tgeffn1J3sv drHEOkJB7dXKS5Gv0uUwU0SU5rGHpgxmRN4bDoWhJwbf44EjAZ2f813xwQz4ycgz5vl7 TX0saTkP65enJb0s/vpcu+JL+cjNxAJgAJ4GCiwjyAV5liWQzf5VYa4DyZtQq41wvQlf lj79eC9Oy2NsCRYqhKRcbg4/ktCVL+NUFRteWwfqZ2uU7Y/shIpcQvyxgnQY4yAKrWyS WJwWAERjHO7sKTMmnmuX09EDK/T0ME1yO0v6EOlacojK58EMJqDPh7N+EPtuqj4YSIGD /4+A== X-Gm-Message-State: AOJu0Yw7duzSTri5JRN7tUch5HNpnIuF8jAPTQbe2sxuG4Iu5t3Wi/QG Na1260c78zI5s/wYKk26tdYKntFMoYm4eSLPADJiM4msX4kx3O8Ghk5tJrwtzMPYBuhv2vjd/D+ 1 X-Google-Smtp-Source: AGHT+IGXo6y1a9DYDpQR+/s77OOYuTgpEYjuuCLJfdC3wkGMg68BFl5HCOhEI2pVxbiN5vcx+TO4rA== X-Received: by 2002:a5d:59a6:0:b0:33a:f48d:1a16 with SMTP id p6-20020a5d59a6000000b0033af48d1a16mr1604375wrr.22.1706541549398; Mon, 29 Jan 2024 07:19:09 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Tyrone Ting , Subbaraya Sundeep , Alistair Francis , Igor Mitsyanko , Hao Wu , "Edgar E. Iglesias" , Peter Maydell , Rob Herring , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v3 6/9] hw/arm/musca: Simplify setting MachineClass::valid_cpu_types[] Date: Mon, 29 Jan 2024 16:18:25 +0100 Message-ID: <20240129151828.59544-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240129151828.59544-1-philmd@linaro.org> References: <20240129151828.59544-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::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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: 1706541617039100001 Musca boards use the embedded subsystems (SSE) tied to a specific Cortex core. Our models only use the Cortex-M33. Use the common code introduced in commit c9cf636d48 ("machine: Add a valid_cpu_types property") to check for valid CPU type at the board level. Remove the now unused MachineClass::default_cpu_type field. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/musca.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/arm/musca.c b/hw/arm/musca.c index 770ec1a15c..e2c9d49af5 100644 --- a/hw/arm/musca.c +++ b/hw/arm/musca.c @@ -605,7 +605,6 @@ static void musca_class_init(ObjectClass *oc, void *dat= a) mc->default_cpus =3D 2; mc->min_cpus =3D mc->default_cpus; mc->max_cpus =3D mc->default_cpus; - mc->default_cpu_type =3D ARM_CPU_TYPE_NAME("cortex-m33"); mc->valid_cpu_types =3D valid_cpu_types; mc->init =3D musca_init; } --=20 2.41.0