From patchwork Thu Nov 23 14:38:04 2023 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: 746472 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp913259wru; Thu, 23 Nov 2023 06:39:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOuBaVn1ZnO1f7C/HKUroMwOJ1rtn97WAY7hECipcECUqUUV4PsNVnNxRR02UbV0Hxmlkr X-Received: by 2002:a05:622a:1894:b0:423:6d73:b4d8 with SMTP id v20-20020a05622a189400b004236d73b4d8mr6774337qtc.12.1700750350466; Thu, 23 Nov 2023 06:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700750350; cv=none; d=google.com; s=arc-20160816; b=hUOuHSkpF2Is+7gS+5zrJvn9/XkxO3U2wQP3DXxvvbYlMLz3eviGYMLKOrs1WYfjXO haCRolbvLypdePiwBFDGocmoAoX5wqKcX3KadgNQ2qE9x/FfmitnacGUZZp0xvnSRjgO erDxn9UBkyY6zYVD+S8P/NkDWEinq5oPX0x1UxoRyJ4ZCfPWglE/fV2ETNrLyk93+oJf vE/qerMcvyWc4IelsDnI0R6QgynRUHBvOK92dtQRbieuA8WlnNbE9v64m7EuGkU44OWY c5lbMInfLxJTpS00M4RRvfF2bJ2P9L5KKuH6eRLcBzzxAGEiF91MKTUqDyhlcgPDqsg6 QnkQ== 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=UFa7i+NW2UQ3kmh2XmqKEmfildbqevSt27vx2CpyNsM=; fh=xd8Hqo+FyqINTpmMuSlnP3D7Rh8IYP9KQ4AY72o61pU=; b=NHk4sv7St/+mh/SZX4+iSqi2GgmnC4e14D/BvduFpLLKLFl8J80T6vqFpS7Ms1Dl/y fi/i76htbn83EECuSb7WaW4dgCW8wnDJOJPKdr6Gmxe+IfroeHqNaR6teF7h/RXQ1Ydm amVqeeqoH9OmCkolvUXlCaxsHd6dGP4DaBMkkRUsC+IGGX6yqB2c2VYUTfkWzIlcqeDY 7BwS7E27fLASLm1VACe8SKN5Oq70Q+T319EGlodHOjmK0RZiHOha8/XraRnQOFsfJgu9 5QlewfIlN195GN412SgbnpS5aK3XA1ekgcdLBv0pv/eN6qh6XT7MeMv7WQLeL8IDo5Q9 x5fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QW8pah3S; 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 s11-20020ac85ccb000000b00418051c660esi1240293qta.625.2023.11.23.06.39.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Nov 2023 06:39:10 -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=QW8pah3S; 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 1r6AqZ-0001mh-04; Thu, 23 Nov 2023 09:38:27 -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 1r6AqV-0001m5-GH for qemu-devel@nongnu.org; Thu, 23 Nov 2023 09:38:23 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6AqS-0002PD-El for qemu-devel@nongnu.org; Thu, 23 Nov 2023 09:38:22 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-331733acbacso612326f8f.1 for ; Thu, 23 Nov 2023 06:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700750298; x=1701355098; 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=UFa7i+NW2UQ3kmh2XmqKEmfildbqevSt27vx2CpyNsM=; b=QW8pah3SPrCXsAQhsAABMCy4SG8qmQT7eqMs+AffEYPSQ7APQRLtOU0CnIoi995Mgm hRJUeSEpKLUtOdGkk49XMomo8zVHbRSYz6jDgdky8qeegBF49GUgMCPzZs8dZbnXW9lR rNQRNrTkFAe39Z4SjsCHTsCfqk6oZSNdwDItBB0NK4V6ZywSTpSC5skni+IzXq8Nkcih NhcqCkdxp2xe/JFtbeClZmNqtVnwfGZNNA1jP0d/auA4DHMz+A8qAq9GUfmp0trmgjjd RzgWYBDPK4KYDttFRQ0DaPaOA+LVo80CRwYHw8Ob7c3Mkjnj2sNCnW4ZIFjXMGkVMz1Z ov8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700750298; x=1701355098; 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=UFa7i+NW2UQ3kmh2XmqKEmfildbqevSt27vx2CpyNsM=; b=Byzkalm3QkY8+ihCclTVUifPkJqfkwy6YoEC3vztL2xnj7+BsYSPyD9TiB71QqKpqU eeftR1i6uU4pR1FRzLE+V9KMF+Mp3jjmGOs/H68KGhIpaFVxNNzLrcas5E1XAOYLH8SU tQCq4z3xVVTG5zMqg46wM4E5or16eahuR/SSbmtXQMvwrTEzOLtI7mWizDdhZLVi8RCS EGGWcDyIgx6/A3JaViLfzNOcDKlToRjB8j7Y8RZczeawCFMlq2odxG4pT4kYp66NUmfW SshTsC1U7Fe6o2Cfwq2taPz+LOrgMGb7jb8fiyK/PHt4maeagw74Kfz0gRmE+3TUNRW6 EMxQ== X-Gm-Message-State: AOJu0YwvmgUkE7sRFAbViYOAFdJHeKu/RSGwdAry5KAFYXiN9fGqu2Gz S+pv5Hh0Zl6fs20OfhM2rj4EqA== X-Received: by 2002:adf:f34f:0:b0:32f:c3d0:89db with SMTP id e15-20020adff34f000000b0032fc3d089dbmr3425517wrp.27.1700750298351; Thu, 23 Nov 2023 06:38:18 -0800 (PST) Received: from m1x-phil.lan ([176.176.165.237]) by smtp.gmail.com with ESMTPSA id t2-20020a5d4602000000b0032da4c98ab2sm1884975wrq.35.2023.11.23.06.38.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Nov 2023 06:38:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Markus Armbruster , qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Alistair Francis , Joel Stanley , Artyom Tarasenko , Mark Cave-Ayland , Ani Sinha , Eduardo Habkost , David Gibson , "Michael S. Tsirkin" , Peter Maydell , Andrew Jeffery , Daniel Henrique Barboza , Yoshinori Sato , "Edgar E. Iglesias" , Niek Linnenbank , Andrey Smirnov , Tyrone Ting , Jean-Christophe Dubois , Strahinja Jankovic , Harsh Prateek Bora , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Aurelien Jarno , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Igor Mammedov , qemu-ppc@nongnu.org, Hao Wu , Marcel Apfelbaum , Beniamino Galvani , Richard Henderson , Nicholas Piggin Subject: [PATCH-for-9.0 v2 0/8] hw: Simplify accesses to CPUState::'start-powered-off' property Date: Thu, 23 Nov 2023 15:38:04 +0100 Message-ID: <20231123143813.42632-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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 Extracted from a bigger series, after Markus' review. Supersedes: <20231122183633.17676-1-philmd@linaro.org> Supersedes: <20231122183048.17150-8-philmd@linaro.org> Philippe Mathieu-Daudé (8): hw/ppc/spapr_cpu_core: Access QDev properties with proper API hw/arm/bcm2836: Simplify use of 'reset-cbar' property hw/arm/bcm2836: Use ARM_CPU 'mp-affinity' property hw: Simplify accesses to the CPUState::'start-powered-off' property hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev hw: Simplify uses of qdev_prop_set_bit(dev, 'start-powered-off') hw/arm/bcm2836: Move code after error checks hw/arm/bcm2836: Add local variable to remove various DEVICE() casts hw/acpi/cpu_hotplug.c | 7 ++-- hw/acpi/ich9.c | 4 +-- hw/acpi/piix4.c | 4 +-- hw/arm/allwinner-h3.c | 3 +- hw/arm/allwinner-r40.c | 3 +- hw/arm/armsse.c | 5 +-- hw/arm/armv7m.c | 7 +--- hw/arm/aspeed_ast2400.c | 3 +- hw/arm/aspeed_ast2600.c | 9 ++--- hw/arm/bcm2835_peripherals.c | 3 +- hw/arm/bcm2836.c | 51 +++++++++++++---------------- hw/arm/boot.c | 4 +-- hw/arm/fsl-imx25.c | 3 +- hw/arm/fsl-imx31.c | 3 +- hw/arm/fsl-imx6.c | 14 +++----- hw/arm/fsl-imx6ul.c | 8 ++--- hw/arm/fsl-imx7.c | 20 +++++------ hw/arm/npcm7xx.c | 9 ++--- hw/arm/xlnx-versal.c | 9 ++--- hw/arm/xlnx-zynqmp.c | 9 ++--- hw/core/bus.c | 2 +- hw/core/qdev.c | 2 +- hw/i386/pc_piix.c | 19 ++++------- hw/microblaze/petalogix_ml605_mmu.c | 5 ++- hw/microblaze/xlnx-zynqmp-pmu.c | 18 ++++------ hw/mips/cps.c | 6 ++-- hw/ppc/e500.c | 3 +- hw/ppc/spapr_cpu_core.c | 2 +- hw/ppc/spapr_pci.c | 3 +- hw/rx/rx-gdbsim.c | 4 +-- hw/sparc/sun4m.c | 3 +- 31 files changed, 93 insertions(+), 152 deletions(-)