From patchwork Mon Jan 29 15:18:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 767390 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp938238wro; Mon, 29 Jan 2024 07:20:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWP0mkW3fZdXxsJ5s2ziidB1KBtUycLuGpnddzZwg2hGFGoQHFLSSa18zIdz9RZPq8xivh X-Received: by 2002:ac8:7d4d:0:b0:42a:a079:f766 with SMTP id h13-20020ac87d4d000000b0042aa079f766mr3628868qtb.110.1706541616261; Mon, 29 Jan 2024 07:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706541616; cv=none; d=google.com; s=arc-20160816; b=yt+8IELZvfj9gJ+C7/SZRtFn4WNrk0wH8At9CMECtDVXIa7afVLCJ1+bJH2RYIzdsK JVjKlPAVGx/a+ceNVM2EuBxN+sDQPnDdm+QWXp7Z7GAM4StHjKjzZrVTmv7cr8cq79mx eCoKaAWfuSAt2ZAEBJFaYEMq/Z5BveeVoVhw8zBRsQPTo/+5sdIZlVFC+s3sswHsEHWF Ui6yyAdztHysUC0RkeKVwy9sn1VAwpGCZca6r2vIz5XWTRDWq72Zj5KA/zVFaV/Bb6vH nzaEwD5/8IpgDgxZ/wA8N8RDw0CQ6zCFOJq2DCyQZ9hsJR3e357wfpe3i45Gk2wybKCA wXxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=letmG5/Sw/UvLSNttdIXIs4OU6VOMo7YyUWWgNEfysU=; fh=Q7sPWZVumIp+YJDEXhcbqZA2VLBOzLVoxgbszpp+aBE=; b=ZKl5wY279IhcOQox9mIjfCZMthDoLXx6lmHfRehCXKHIjNXkekHU2131URF6IxidvG aDY8k9h0DodWzs2kpZIQOhWSetfX32bxRo4oYDKtczTUKHOh1qanf8CBtlMsVWHeXkyN ouXhoBdMbCPIsOvn+LfyvHRLqf3tH2KzPF2QHsWTsn98axJoICkaofMoEdB8Y/XstWwP TrVXBLFXVVtEOXxTigFEoKzP7rYMxDHyGQKiKD7EveA/uEjHiq7fftTDLOjyjRS1+MIJ ondC3Np93jgpLml77cwnZUiJL5WSXvmZ6ngakX93BAO29GEozX1+QI35bD9VuSk3y2qr xHGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=clGEcFZU; 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=pass (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 j18-20020ac85f92000000b0042ab14ce3d6si140719qta.403.2024.01.29.07.20.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2024 07:20:16 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=clGEcFZU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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 *data) mc->default_cpus = 2; mc->min_cpus = mc->default_cpus; mc->max_cpus = mc->default_cpus; - mc->default_cpu_type = ARM_CPU_TYPE_NAME("cortex-m33"); mc->valid_cpu_types = valid_cpu_types; mc->init = musca_init; }