Received: by 2002:a17:907:1006:b0:9d0:bf65:29fa with SMTP id ox6csp215569ejb; Thu, 16 Nov 2023 23:18:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhnFHf7wiKdz+g50m44twjRZUZ52LeHhiRbnEuBOtQNm75tKwllhTYT5ZCy98Jr5QH3yl8 X-Received: by 2002:a67:a44b:0:b0:462:8645:1e76 with SMTP id p11-20020a67a44b000000b0046286451e76mr166352vsh.25.1700205483897; Thu, 16 Nov 2023 23:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700205483; cv=none; d=google.com; s=arc-20160816; b=jECVI8Oe26DX11a6Got+kA/0/hU8HTqweIdnrC79vVJ+9Sj+j+emKAxCctDMUmKA+H mNedDCmhcPCKJ0nM19BRCOH5YL0iquTjY9leAVfx+KjHH4NQg5QiKNT/yGLIyzkpFy2W Qj49zwdyAjhj9eLH7DA9/spl4wbiMeRYAhoZvw6xzmRE+oryZfDU2rUcwiok+PubKj4w mr1SGsb8qX1+wxd0+/wa9pWXTsiqH2XAJp2SR4vSybp2geAxjIUuAanRbhRtxO11P0zc Kj2VU5RrePOpWGgjtDVqFWBhM2ZouJrc3aehbgrqPhOMVVyTsUT3zvUwOsGlHpzATyEH Uexg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=+m6lmxVWQ7+CnkISSCc8mmJ1L+TYWYHaFStbjKV5xFQ=; fh=/iNNmKky1DrOYOLWnTIBUxaMagIUG/IvUjT5dhZ7EH4=; b=BCuRqJixfmMUzTktfc8OEnd7ftCK7xM63iEUQjDcB78LK40hZ+mhpJvYxJGeWV0MrX 8zBK4b0RK3ry9AbUF/QBzPLk48u0eqT4waBdEJ0n75HIbsyal/91PX85GVRGujutWFn1 NvYVNDAU/PopHT6sNx5cFKabOLERG9QxcdC+F9ywxRoUTGwf8xUeImA9W9Ed0Fm6J7XL 924QzqTm4t18xQXRFGoUrctHHfU1V5Aelwt4eeNbdUKv7Pi4I68Bn5+Ifpywy05fY0Wu QQYQ9c1jE4u8k8gO1RpBbUEPM+9t+vVpEnT7fRpXfK63WVC2ZK1GYMsEIPZ+CY5MGAh5 NKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mRLV8t0I; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 bi20-20020a05620a319400b00773db595cccsi1210425qkb.672.2023.11.16.23.18.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Nov 2023 23:18:03 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=mRLV8t0I; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 1r3t6R-0005Ke-Bq; Fri, 17 Nov 2023 02:17:23 -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 1r3t6M-0005Ie-Li for qemu-devel@nongnu.org; Fri, 17 Nov 2023 02:17:19 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3t6H-0004FV-P7 for qemu-devel@nongnu.org; Fri, 17 Nov 2023 02:17:16 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso13963715e9.3 for ; Thu, 16 Nov 2023 23:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700205428; x=1700810228; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+m6lmxVWQ7+CnkISSCc8mmJ1L+TYWYHaFStbjKV5xFQ=; b=mRLV8t0I4cFE6GopMH7+ctnfLaBVhDeIgusJLc8LQn4zVuxM+tiatfJhn/0XlpZ032 9AIsWwAShPgXSJ7d4ulvwBXUmG4X9rRf/PrAx2lsWvrwhP7GLfZiClnzo4UxAccDj28W 9R3xoQtUqeDdB8r+iU7X8qTM8lyX/z6ZMmQdqelLw/3pnp9It+MilydMDAuUPo9WQAWN iFRA8NYQx3KTKdxHVfotclvChls/gCPLwXU4GJzUp9pa/sNsK3jYoxjMae1ymAjC49hK rlGwukC4g9gk0lMtR1IP6aKV8c69937wKDRS2/EsxmdCQFwkX3XO9Mul9rWWTEpcSJk/ RoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700205428; x=1700810228; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+m6lmxVWQ7+CnkISSCc8mmJ1L+TYWYHaFStbjKV5xFQ=; b=O5ueC8oAFpiRzgZU1kYUI3bbbXJ+CbzvFI1kyYthuO5NuHmIgK2c8SgpDaWRUVI2R0 AgT2zUE8+dQEq4n4xTFaiIfqQ1dxzhsRy0Uq2uigicplNM/Xb4pBqWLZmRZmnU4G34qv BGYk85az1ocB+dp6qf6J8YolJr9HxxrJIyySWhDEohF7bgOdsCJSo0uiWmcywSZXSpQ7 fKdz3rAbeaQcRrHcwNs4x0jU17bJWh7SzJNplbXNK1BaywIinW+kbfvYqtnG2TS5U0kX YEsGMDqimca2TJxI2ftwGnxwMtJ07ZapT9GDhyQ4JSEZuMy3Bg+fgfVwz+Cf7KjpdrDD USPw== X-Gm-Message-State: AOJu0Yww8YLP9MYSgOzreZhKw2p5yrkDn26BfKy4DSX29rRHfbmi3b4Q XF2qxyiCqaptBCNbBMrNrz7NLQR5ioz5RJxCHxQ= X-Received: by 2002:a05:600c:4584:b0:40a:57b4:3d68 with SMTP id r4-20020a05600c458400b0040a57b43d68mr10888896wmo.18.1700205428084; Thu, 16 Nov 2023 23:17:08 -0800 (PST) Received: from m1x-phil.lan (bd137-h02-176-184-46-187.dsl.sta.abo.bbox.fr. [176.184.46.187]) by smtp.gmail.com with ESMTPSA id v21-20020a05600c429500b0040a4cc876e0sm1654225wmc.40.2023.11.16.23.17.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 16 Nov 2023 23:17:07 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Subbaraya Sundeep , Arnaud Minier , Igor Mammedov , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Tyrone Ting , Hao Wu , Marcel Apfelbaum , Felipe Balbi , qemu-arm@nongnu.org, =?UTF-8?q?In=C3=A8s=20Varhol?= , Alistair Francis , Yanan Wang , Richard Henderson , Eduardo Habkost , Peter Maydell , Helge Deller , Subbaraya Sundeep , Alexandre Iooss , Gavin Shan Subject: [PATCH-for-8.2? v2 0/4] hw/arm/stm32xxx: Report error when incorrect CPU is used Date: Fri, 17 Nov 2023 08:17:00 +0100 Message-ID: <20231117071704.35040-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: fq94LSY8gJnP Series fully reviewed. Hi, While reviewing this [*] series from Arnaud and Inès, I realized STM32 based boards don't check the requested CPU type is correct, and ignore it. Possibly confusing users. Since these simple boards code is used as template, I took the opportunity to sanitize it a bit, using the MachineClass::valid_cpu_types which seems simpler (to me) for newcomers. Patches are candidate for 8.2 but this is a long standing issue, not a regression from 8.1. Regards, Phil. [*] https://lore.kernel.org/qemu-devel/170003673257.14701.8139061802716120109-0@git.sr.ht/ Gavin Shan (1): hw/core/machine: Constify MachineClass::valid_cpu_types[] Philippe Mathieu-Daudé (3): hw/arm/stm32f405: Report error when incorrect CPU is used hw/arm/stm32f205: Report error when incorrect CPU is used hw/arm/stm32f100: Report error when incorrect CPU is used include/hw/arm/stm32f100_soc.h | 4 ---- include/hw/arm/stm32f205_soc.h | 4 ---- include/hw/arm/stm32f405_soc.h | 4 ---- include/hw/boards.h | 2 +- hw/arm/netduino2.c | 7 ++++++- hw/arm/netduinoplus2.c | 7 ++++++- hw/arm/olimex-stm32-h405.c | 8 ++++++-- hw/arm/stm32f100_soc.c | 9 ++------- hw/arm/stm32f205_soc.c | 9 ++------- hw/arm/stm32f405_soc.c | 8 +------- hw/arm/stm32vldiscovery.c | 7 ++++++- hw/hppa/machine.c | 22 ++++++++++------------ hw/m68k/q800.c | 11 +++++------ 13 files changed, 45 insertions(+), 57 deletions(-) -- 2.41.0