From patchwork Tue Feb 4 18:07:45 2025 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: 861830 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:11cb:b0:385:e875:8a9e with SMTP id i11csp440578wrx; Tue, 4 Feb 2025 10:12:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUA4++u9/PYdYX3Iw7BPPfVvS4Jvj4rl1exsQHQ8OFuP0cickujuqfFnrfE506rfCroN/DUZA==@linaro.org X-Google-Smtp-Source: AGHT+IHpBcBqDuJQDTWPnl8liV+qEP1yzcFiO5YjSD/jGblLZkO/t0Pbe2gEEJYCNENb2qu22TX+ X-Received: by 2002:a05:620a:29cf:b0:7ac:bb00:cd42 with SMTP id af79cd13be357-7bffcd43180mr4249616585a.27.1738692737357; Tue, 04 Feb 2025 10:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738692737; cv=none; d=google.com; s=arc-20240605; b=ZIs/vNmX54R6u4GokZToRZm/Nra9eGYnDj5/YIJkkwDnchwZjvg7jnc8q2wOGGoO6X PHkOPvUtI8vDEyXXT4gKeKjd8qrxN+YOj5dBRtUGx7qysAh0Stz+5rcP2CjRPEc3L6bB X7IaLbfBySSWbplh8CBGRkfjHuwRsn15hwqK+NnQ1iQNdKNhRt1/r4vfpDsJUKM7Gg2T xqFMcui48uQ8U/w+pXbiaWWuJYBt0MwVblZRImWG7Ft0TFdYTyFzR1r8kh+kRChVlB2T HOI47vjW1rP8Y3lXR8Uya3ONQ7lWQeVKBbDGVYijILbJWo6IOUwXhYCJXVUO9WLzvmgc EBnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=bMSMAcw63WhCEzylD0QLkcsjYvnfbTQfvq7nklxvlvM=; fh=Fr7KWdSB8csBog1HqFACDLHw5Bqh7nNqSJhjdxBBjk4=; b=V39U+G06DuI1nF892cebah4y+PUczrykBttvRg2rS54a+4w4bQJHuhuTarTuJHKp6d Sj7zgJbW0PPp2+NxaQxdOsflg29X50cnXZttIV+/TxzEFE+aM7zXjMc4SFFbT7h25FWD J762nmdA2ULMPqu/GI2YA2/7FpJCsv9l3dY94zdXQZCKkFU/B4PchISWuFgh6Strm5la zX6Ow6qQE6HntkY4YESwr7tndKZpFFGJM1+VDMdRCt1A83GozakXHyPsuZaRFs0s0l+5 Nql/bQUInlgYP96ye8EOlQpsJO1w3Zbz9ZRE1GDS2+ke5Ar/fYXWvHg2E7vgIIa8d9Rx L0sA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p0QNvU83; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c02dbfd216si323565285a.481.2025.02.04.10.12.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Feb 2025 10:12:17 -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=p0QNvU83; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tfNMt-0006Mr-Pm; Tue, 04 Feb 2025 13:09:56 -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 1tfNLa-0004X2-I6 for qemu-devel@nongnu.org; Tue, 04 Feb 2025 13:08:31 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfNLX-0007EN-Tz for qemu-devel@nongnu.org; Tue, 04 Feb 2025 13:08:30 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4361f796586so69970535e9.3 for ; Tue, 04 Feb 2025 10:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738692503; x=1739297303; 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=bMSMAcw63WhCEzylD0QLkcsjYvnfbTQfvq7nklxvlvM=; b=p0QNvU83H3p+tcrSSgTyNs8LWmSz7YGir1NpF76mAZEeiveNhrTGoepDUwtYNuHNMC Q/TIOWYYIn1EMjITv0mW6YvPzFaoukS0h4/Z4Bg2NOPnobRNZFSlo483wEegT6l1/ovJ jR+l5S7wm42k7Ym7Z/ex2bkRH9huWPeT0dIXJ0YJCv+lW3Mc23WhOYJVxwUlP/GjnXen b42Dh3kM0w64gzV1THOkKT6xil9cQSuLRCP5SxwallUfIebuqB6aFkGPb6uN8haDtVxS TfcY+gc3WEOL9Q5AUt1dwUeTmBsNNxbsHpQASRa6dgs8KpzeTWRnBzG7rMYUkBOxFTAo CUbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738692503; x=1739297303; 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=bMSMAcw63WhCEzylD0QLkcsjYvnfbTQfvq7nklxvlvM=; b=waRNBJLwgF/CLzF6hsVC+8AlW71tRl0w7E2DCbHEUOOwuJ5WQQ4D3b+6If4u0Yoo66 wR2pA3ZS87rMuz/Al1+uRizynTZqbv0rKIkQrW6OY+Wi8gL+meFtpJcuMortaS8KaMxw 1HC4qh8c3I4oLSgAgOonln0n/XxRa8DHnu6K64xYynjLfSEo7oVXNEl3vQLMUyU96hAe D7WhyB0H60+/p4OC02yoFjeH9VANONMU/T3Tks0kL5oaNIrTOl5BgH2uENLUnHJoO0Q7 BoL3SzC5t81mg3rqq7kHQi1HxL5hnQs0oUGUEwBPXw4LiWKu1UoScA9FlBGmC62KbSEy rFZw== X-Gm-Message-State: AOJu0Yzcse6ncvFOyGb7X6QVUpO4+TPlWYsJvhwrfz1JFD8n8iuKeed3 yWnOhQuZpaZQs3WBZ8A0F1hJs2Q59BHiMZMZX00+I4xEGNgKVA9biJxLDlnp3ztzApO8w+vGc5H 5K0w= X-Gm-Gg: ASbGncvBfVJLRp244TKQ8Q8tXRMahTCF+pQmpUjqM6j83uZJRVFWopjTridYPlskzx5 KsGXRHF09wfl6fEYQ0b/GoX4kX2EGhNvwKtUDl+sCjOhNzfwMihbXtrMzJ/iwkgYHLfXwbmQnIv d2omCpYEG6whBvH9B/Ft22S4zP9J5Fq7JLMCOzPfa0i3L55dNDDymTHOKw6j8uelxc1FY9kznR0 XCGlzsg6kgZyKGExkSMyLvMpO7yvbpdvkQxLvnBsV3dT8t3M9knj5m2JGz/WQXObpovEa0rnL5C gjfGea7l4uXA5UKpvPeclOmbfo3D+sKgpFYQ5dY1Bg5fhQKA27CVWS81uoFPrX+glQ== X-Received: by 2002:a05:600c:3b94:b0:434:ff45:cbbe with SMTP id 5b1f17b1804b1-438dc3cba35mr284144205e9.18.1738692503020; Tue, 04 Feb 2025 10:08:23 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439069290c7sm23368375e9.0.2025.02.04.10.08.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 04 Feb 2025 10:08:22 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-arm@nongnu.org, Peter Maydell , qemu-ppc@nongnu.org, =?utf-8?q?Da?= =?utf-8?q?niel_P_=2E_Berrang=C3=A9?= , Paolo Bonzini , Thomas Huth , qemu-s390x@nongnu.org, Markus Armbruster , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 7/8] hw/riscv: Remove all invalid uses of auto_create_sdcard=true Date: Tue, 4 Feb 2025 19:07:45 +0100 Message-ID: <20250204180746.58357-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250204180746.58357-1-philmd@linaro.org> References: <20250204180746.58357-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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=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 MachineClass::auto_create_sdcard is only useful to automatically create a SD card, attach a IF_SD block drive to it and plug the card onto a SD bus. None of the RISCV machines modified by this commit try to use the IF_SD interface. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/riscv/opentitan.c | 1 - hw/riscv/shakti_c.c | 1 - hw/riscv/sifive_e.c | 1 - hw/riscv/spike.c | 1 - hw/riscv/virt.c | 1 - 5 files changed, 5 deletions(-) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index d78a96c5354..b9e56235d87 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -121,7 +121,6 @@ static void opentitan_machine_class_init(ObjectClass *oc, void *data) mc->default_cpu_type = TYPE_RISCV_CPU_IBEX; mc->default_ram_id = "riscv.lowrisc.ibex.ram"; mc->default_ram_size = ibex_memmap[IBEX_DEV_RAM].size; - mc->auto_create_sdcard = true; } static void lowrisc_ibex_soc_init(Object *obj) diff --git a/hw/riscv/shakti_c.c b/hw/riscv/shakti_c.c index efe814b5868..e2242b97d0c 100644 --- a/hw/riscv/shakti_c.c +++ b/hw/riscv/shakti_c.c @@ -84,7 +84,6 @@ static void shakti_c_machine_class_init(ObjectClass *klass, void *data) mc->default_cpu_type = TYPE_RISCV_CPU_SHAKTI_C; mc->valid_cpu_types = valid_cpu_types; mc->default_ram_id = "riscv.shakti.c.ram"; - mc->auto_create_sdcard = true; } static const TypeInfo shakti_c_machine_type_info = { diff --git a/hw/riscv/sifive_e.c b/hw/riscv/sifive_e.c index 164eb3ab83b..73d3b74281c 100644 --- a/hw/riscv/sifive_e.c +++ b/hw/riscv/sifive_e.c @@ -153,7 +153,6 @@ static void sifive_e_machine_class_init(ObjectClass *oc, void *data) mc->default_cpu_type = SIFIVE_E_CPU; mc->default_ram_id = "riscv.sifive.e.ram"; mc->default_ram_size = sifive_e_memmap[SIFIVE_E_DEV_DTIM].size; - mc->auto_create_sdcard = true; object_class_property_add_bool(oc, "revb", sifive_e_machine_get_revb, sifive_e_machine_set_revb); diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c index 1ea35937e15..74a20016f14 100644 --- a/hw/riscv/spike.c +++ b/hw/riscv/spike.c @@ -358,7 +358,6 @@ static void spike_machine_class_init(ObjectClass *oc, void *data) /* platform instead of architectural choice */ mc->cpu_cluster_has_numa_boundary = true; mc->default_ram_id = "riscv.spike.ram"; - mc->auto_create_sdcard = true; object_class_property_add_str(oc, "signature", NULL, spike_set_signature); object_class_property_set_description(oc, "signature", "File to write ACT test signature"); diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 2aa420f6e55..241389d72f8 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1918,7 +1918,6 @@ static void virt_machine_class_init(ObjectClass *oc, void *data) mc->default_cpu_type = TYPE_RISCV_CPU_BASE; mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; - mc->auto_create_sdcard = true; mc->pci_allow_0_address = true; mc->possible_cpu_arch_ids = riscv_numa_possible_cpu_arch_ids; mc->cpu_index_to_instance_props = riscv_numa_cpu_index_to_props;