From patchwork Tue Jan 9 18:09:15 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: 761055 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp1494717wrz; Tue, 9 Jan 2024 10:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMSmZDJJAy8PYqXmutH4MChMhiHznD3+SwgWXRQkamnG9DMQ/Ea6pa9s98Lj0UBpruRA5Q X-Received: by 2002:a81:5d07:0:b0:5ef:524c:7b70 with SMTP id r7-20020a815d07000000b005ef524c7b70mr3057218ywb.5.1704823806385; Tue, 09 Jan 2024 10:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704823806; cv=none; d=google.com; s=arc-20160816; b=dLZV2IUw6cp1CqJ2q1e+iBvWdF0wPuQ30K1ZC+YtwsJ/QsVeJKV8S+5Bi6FJivpYIi emAugedy7l4UPNg3choJfoN9dtr1SxzQYB+iANwdklfdWXjxD/do6rE8NqvIImgDkWiq UdChEmM54IU+mnnMkAQoOwQ8/7uZD7WtwTxPS875ApirchlUPBvjNqKc0dvhYMEbeyZ8 85oc2rKprjAnkb1gC0cW8MV+Kj6RES7ut/lpYV9XZU+7wCES1ZYMA1RBp+L6/GtHXTAz 1sL4cGriYAHBc6zqajzekVdUh+dlFXiECsZGBCoXQttYOQJhB+0YF8n0njyrR/WQqnrO nlSQ== 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=ih59QO5Uf+GiDwqnPD0KnU4KBtIrojXxz4NGhpA5s9c=; fh=v69mdd+nxs/0WeTIWzLZOPCx0ynE2o0vtvId2fSwkBY=; b=EOKh/wS9YHK9UYbRvwxarT6VH5LyX3QuNilF6b3g/56hAp57bVgqBWZdiaDcX681Kh qrUkmlCvLPKn+krShSLh9yovGtbHSqIlxz5uzapvisGUS7RJ7ExvFwtGBjZQAr6S7808 lRNSRPuiOJRh7VVHkXCjAgKORLm5se/CxjrKyRDLd+zOkkr7JWlhD7NS7iVBLli75C0m SX1e+IPRLC80YGsoKq6+/DE5FuspVRqVEeGfW3G40n672oDEbYAl+LAtJRM/Pr32LFm7 bwxHTJN6ayi8syiXvQBDaP2xSD5g1B67WLf/FsOZppsk/QvnQkJ8HpT0OQ8kktK8yzOj ET1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hU8X55hk; 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 dc42-20020a05610255aa00b00467e72c2140si319413vsb.21.2024.01.09.10.10.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jan 2024 10:10:06 -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=hU8X55hk; 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 1rNGXu-0002Pu-CE; Tue, 09 Jan 2024 13:09:50 -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 1rNGXq-0002PC-Kn for qemu-devel@nongnu.org; Tue, 09 Jan 2024 13:09:48 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNGXm-0003sC-Oj for qemu-devel@nongnu.org; Tue, 09 Jan 2024 13:09:46 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40d8902da73so30909435e9.2 for ; Tue, 09 Jan 2024 10:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704823774; x=1705428574; 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=ih59QO5Uf+GiDwqnPD0KnU4KBtIrojXxz4NGhpA5s9c=; b=hU8X55hks41EC19p8gbY4fFRpk62n3XQSPlVLcNIAhjUlTTMOyCWGO8qVFZZ1vBwF4 YJPBwglN00ssXAb/+y4M1tqAZpv5/Xpr991GMZVjFOumzJOPcQbYaHM8PjEEpzOeIz6J mKkgBfFeLr2egySuH6S+kmrWhTM8vFTMJIB0PRrWAubpl3ise1IXwPIzobRN66rbhoSY 7Xn+2Zj4XcJvcLxU/HFt4baJ8pwy/a1ZkMD36tzoQba5QBYB+VgtL18Z4tPSsPmbyt86 +2+uqu4u2EKCR9GtlsRYQ6vgXf6y2JwGmyXJ95uFtCF6tR5NQf9MaqKq6js5PJ/d801K 5Hng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704823774; x=1705428574; 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=ih59QO5Uf+GiDwqnPD0KnU4KBtIrojXxz4NGhpA5s9c=; b=BTAkzufGBPiOdGvPAWZVKgwJW1tmx5sQ0ldnNiXItatJ9h7/wNlNXYTi9KbBLR4nu8 rus1yWbFnijZoLtxv0Ry/zRYxcr5hcxqCtko6ecNIT9T60jub3oVxlqoHs9pQw3BU6M1 s7xxZDHsyvjM2fceimTRoHstPRvVr3gJcEJf0i/zQd4L3ljvXDPXFQUpXSZEaWfoyqgZ J4WhJOFXFrBea4vIVKUS7cdkOuDIUWwHVf36VFQLQwLIBFoCJpdEDbIzL5rB9Hg9rsVV UrZkFOgmmAPG9o5AwP36wtAG8BdRlEXrW0WPIee52qNiXIhySxdKFkgrqlHmUH6KKyKo LXuQ== X-Gm-Message-State: AOJu0YyG0z+U0pWgXipHtWPwzKcB2/n9Pkm7E1da+jM6LpDM+laX6aSI OZoW8kviG89/oKdtDu5TyYCHnX66U6HobKe1FG4VAX5+X8VEIw== X-Received: by 2002:a05:600c:4f14:b0:40d:85a0:d0f3 with SMTP id l20-20020a05600c4f1400b0040d85a0d0f3mr3027381wmq.51.1704823773988; Tue, 09 Jan 2024 10:09:33 -0800 (PST) Received: from m1x-phil.lan (rsa59-h02-176-184-32-47.dsl.sta.abo.bbox.fr. [176.184.32.47]) by smtp.gmail.com with ESMTPSA id bi26-20020a05600c3d9a00b0040d53588d94sm15630529wmb.46.2024.01.09.10.09.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 09 Jan 2024 10:09:33 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Leif Lindholm , Radoslaw Biernacki , Kevin Wolf , Markus Armbruster , "Edgar E. Iglesias" , Igor Mitsyanko , Rob Herring , Alistair Francis , Peter Maydell , Marcin Juszkiewicz , =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-Daud=C3=A9?= Subject: [PATCH v2 00/14] hw/arm: Prefer arm_feature() over object_property_find() Date: Tue, 9 Jan 2024 19:09:15 +0100 Message-ID: <20240109180930.90793-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::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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 Since RFC [*]: - Split one patch per feature - Addressed Peter's review comments [*] https://lore.kernel.org/qemu-devel/20231214171447.44025-1-philmd@linaro.org/ Based-on: <20231123143813.42632-1-philmd@linaro.org> "hw: Simplify accesses to CPUState::'start-powered-off' property" Philippe Mathieu-Daudé (14): target/arm/cpu: Simplify checking A64_MTE bit in FEATURE_ID register hw/arm/armv7m: Introduce cpudev variable in armv7m_realize() hw/arm/armv7m: Ensure requested CPU type implements ARM_FEATURE_M hw/arm/armv7m: Move code setting 'start-powered-off' property around hw/arm/armv7m: Always set 'init-nsvtor' property for Cortex-M CPUs hw/arm: Prefer arm_feature(M_SECURITY) over object_property_find() hw/arm: Prefer arm_feature(THUMB_DSP) over object_property_find(dsp) hw/arm: Prefer arm_feature(V7) over object_property_find(pmsav7-dregion) hw/arm: Prefer arm_feature(EL3) over object_property_find(has_el3) hw/arm: Prefer arm_feature(EL2) over object_property_find(has_el2) hw/arm: Prefer arm_feature(CBAR*) over object_property_find(reset-cbar) hw/arm: Prefer arm_feature(PMU) over object_property_find(pmu) hw/arm: Prefer cpu_isar_feature(aa64_mte) over property_find(tag-memory) hw/arm: Prefer arm_feature(GENERIC_TMR) over 'kvm-no-adjvtime' property hw/arm/armv7m.c | 36 ++++++++++++++++-------------------- hw/arm/exynos4210.c | 4 ++-- hw/arm/highbank.c | 3 ++- hw/arm/integratorcp.c | 5 ++--- hw/arm/realview.c | 2 +- hw/arm/sbsa-ref.c | 3 ++- hw/arm/versatilepb.c | 5 ++--- hw/arm/vexpress.c | 6 ++++-- hw/arm/virt.c | 24 ++++++++++++------------ hw/arm/xilinx_zynq.c | 2 +- hw/cpu/a15mpcore.c | 17 +++++++++++------ hw/cpu/a9mpcore.c | 6 +++--- target/arm/cpu.c | 3 +-- 13 files changed, 59 insertions(+), 57 deletions(-)