Received: by 2002:a17:906:590b:b0:a31:23a7:2a34 with SMTP id h11csp671241ejq; Wed, 24 Jan 2024 18:17:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHR2vgdWA3UaJ4n568WkLUsaXecBCTramPk39ZdJo8PS8F6+CsAp5e8jY6d8e1vK9SaDRuD X-Received: by 2002:a05:6830:1193:b0:6e0:f9c6:8a19 with SMTP id u19-20020a056830119300b006e0f9c68a19mr195436otq.32.1706149056364; Wed, 24 Jan 2024 18:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706149056; cv=none; d=google.com; s=arc-20160816; b=es8SEZVXMLyKbXfkxvWy9LhIArfmHHNcVp6Hdb3Ns+Jf5OiyCycwdK7dPD8EM0GS4z XQO63Mo36DLn7m5lBuS/H3QW+zzcW2CoIrmxj7j+UwPM/kyfsoZGvbgRIm58sciOuwMy /hFMX6q1QiNLoPENmXiltWVDJ+ojhoxXD6aVelOiGpUJCmyOnO0cUivX7+gVq19oKJDO V2ZRSJgvVSzvdAwzg4IASUd66Kg3XxoF9NJlkyj+efF28lQh4brqHPrVHAwEz0JpFXjq tqbGFwDk++QTqoD5DF6Dj9p89DTKRk8gdMp6ZV/HAzvn/cOsiay2wvhqe8tmKErcMLMN cq9Q== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=riOWdTRcTBxaCY1uwzMiCSlBMLfG4ktU0x8g455Wx/c=; fh=39N9WEP22ZX5RpcHhH9m770ca1Njks1d53douB51LrA=; b=z8jg2tkpIr4Y+75IYfyr9fPb/S6AQ+xRyV6wr5QXDh5Hf7NSB72+CrFGBO1Ug6TE9V 3mmEbIgWrtWgokyJyKKAzCOoVuscY70mh/zHNiQJe0fekIhnm/h1B/XL70GxpQ/wOJJp ENgsUVSSFrUZUyQBRNTnHPLhzLR7puvA94TjrXsRU5UFVtp240EeLGysfabYkS5hlIwW eGJiCq3V2IbU3GcuwBYFfddCKbiouVVAlzqC8VistkXquyKAr7qJvtznfFGWa7lSVBYA oZWAVGF71NRvPtpoZ87izQjsJj0rI9I49b52flnrqeI7KY7yD9mGCZJqGuXJZcAhzvd+ A0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TphdeXlR; 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v25-20020a05622a189900b0042a635c42cesi2034250qtc.583.2024.01.24.18.17.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2024 18:17:36 -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=@redhat.com header.s=mimecast20190719 header.b=TphdeXlR; 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=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSpJ0-0004cb-Ig; Wed, 24 Jan 2024 21:17:26 -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 1rSpIw-0004aL-Pe for qemu-devel@nongnu.org; Wed, 24 Jan 2024 21:17:22 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSpIu-0006P1-Oy for qemu-devel@nongnu.org; Wed, 24 Jan 2024 21:17:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706149040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=riOWdTRcTBxaCY1uwzMiCSlBMLfG4ktU0x8g455Wx/c=; b=TphdeXlRVNuHQVP9Bu9+f0HOEpX00Z/TH4D6Mn698a+E62EagmDPrKqd6IIEgOnZMCzT+D KwYj+3svvQS8pPi0dszslo3Fp4IRuTnMgdtERMZotuA+4CFmtxsUnUaKTQM1y7CvomyhOz MHvDI3TlnLlKhZMq7zsqRCej26izJTw= Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-648-qUeBxTFrMfuvUt8xrisLFQ-1; Wed, 24 Jan 2024 21:17:18 -0500 X-MC-Unique: qUeBxTFrMfuvUt8xrisLFQ-1 Received: by mail-ot1-f72.google.com with SMTP id 46e09a7af769-6dfb69507beso6392269a34.2 for ; Wed, 24 Jan 2024 18:17:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706149038; x=1706753838; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=riOWdTRcTBxaCY1uwzMiCSlBMLfG4ktU0x8g455Wx/c=; b=RKWaBztLVE9uAYjUjCBhCeOTp9fLfpGjn2pOxX/p+bZSP2K4FaIGwOblloOoDuJPdX at0I0VBTMg0Jfq0FYwyqMcnAvfRdCG5ZnsoD9U2wvxzwWmO3hLR9MsLns8YjDafAoOZm d9/dfDcdAq8VWPGZZxQpq5zQxr3wP1J8gTmalui9SyefmGArRy4aL6EQrzlC5aZrxt37 29r6He8wZnrr/q8a3fCqcEowKYks8xaXYIQJF2hlMA5opfI9omKr6UElx4J4PBDlnwJC VZZGq/IC3xet9gGjfaMWelaB7pM2ogVxokHfOj2Ns4EWL7/34HlQ7YP/xdvKuWMcY0/Z mBvA== X-Gm-Message-State: AOJu0Yy8eUnJoCrLxBpUMxFos0AiODXVHUvV/bqoCFnjqMQHMgKJJXfE 6z/o7zU5oZQ/Zf5Im8OqmPf+KqYpDAVD3VMGxA7EqDTIRh/e5mUlVo8BVukErd3X7kztQFob4DX FCk38dnkHcSrgb42drm/ngloKTTu241VBYPiJyPXlPKuOdm2SyNQM X-Received: by 2002:a05:6830:1097:b0:6dd:dda6:67b3 with SMTP id y23-20020a056830109700b006dddda667b3mr155851oto.67.1706149037917; Wed, 24 Jan 2024 18:17:17 -0800 (PST) X-Received: by 2002:a05:6830:1097:b0:6dd:dda6:67b3 with SMTP id y23-20020a056830109700b006dddda667b3mr155839oto.67.1706149037650; Wed, 24 Jan 2024 18:17:17 -0800 (PST) Received: from [10.72.112.202] ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id b19-20020aa78713000000b006ddc661a619sm423036pfo.7.2024.01.24.18.17.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 18:17:17 -0800 (PST) Message-ID: <70ca8c50-3c67-4fb6-8919-33ddd38925b4@redhat.com> Date: Thu, 25 Jan 2024 12:17:13 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/6] hw/arm/zynq: Check for CPU types in machine_run_board_init() Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Igor Mitsyanko , Rob Herring , Joel Stanley , "Edgar E. Iglesias" , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Andrew Jeffery , Alistair Francis , Igor Mammedov References: <20240123222508.13826-1-philmd@linaro.org> <20240123222508.13826-7-philmd@linaro.org> From: Gavin Shan In-Reply-To: <20240123222508.13826-7-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=gshan@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SORBS_WEB=1.5, 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: QfcJgUIwthf2 On 1/24/24 08:25, Philippe Mathieu-Daudé wrote: > Restrict MachineClass::valid_cpu_types[] to the single > valid CPU type. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/arm/xilinx_zynq.c | 5 +++++ > 1 file changed, 5 insertions(+) > Reviewed-by: Gavin Shan