From patchwork Fri Jan 26 19:34:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 766381 Delivered-To: patch@linaro.org Received: by 2002:adf:a314:0:b0:337:62d3:c6d5 with SMTP id c20csp404806wrb; Fri, 26 Jan 2024 11:35:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXnaAstc75NUT3g3ZoYOegm6/J9hSsPV0Hv18QbAP/t3/lkiX7Qu63lrqM74aEoxMAuKf5 X-Received: by 2002:a05:6830:33f7:b0:6dd:dbf4:fa2f with SMTP id i23-20020a05683033f700b006dddbf4fa2fmr200901otu.71.1706297756551; Fri, 26 Jan 2024 11:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706297756; cv=none; d=google.com; s=arc-20160816; b=z5XzecOYrhcADswfIJ7ChAunKzcbACSSbkc6L4Zlt3uvfGwItjVXc8BaXAV52AX9K5 6vPdxjieQCjK9vP0pj2Zr7XTTMZFcwbQrFNOPbh29NTmVGfgtUpKorgEJQeuBs2AzG29 v1ps+Y+N0WV/avAMPxHHpsC5z0YB7IP/pLbpH0X+Uus+hwhDbVYZ2ftvjJqfvpOxKiWi GcXVYvEbUTnYJQFd7wjwumq4urB65V6knhp9jdFz3qTgjHAQg8J9gpgTdk5hEs/NOpRf WaQ4GOzvcZXXnhJ2tuwmTPC2jx501zyqQRYFukXoH1RuFo9BDYwxlzDFLvic3YzWk98B 0Bvg== 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=0TeAfcJDcGJDZye+r/25zW/L60aexsAJdtgh4QaVcLo=; fh=hUomQLa/s/gogr0u8ti5kBXrK7ipncypvawHBv3V55c=; b=gIwvfiVTfbOVe/SuTZpQVxvJd8bb/HcSHxNKPvo8oYFEd2y8NNlmXLPpbJxl1suu4x tqaAcKOcZIOaJFRTavMJ/JXRcM3HayAcY1vUXzMxWgBqhScHp0HsmJY9AEUGWASQXoAI Q92oG3IBaHf0B19A5xeOQznhYAPra2JVmL2V5hOzOLHKmOziAJ+yht4NNvViJa8iz+pZ t45T9YxZVqtKe3YOyFAZqs05cNY0sjesfXkD6jTlO3rwHejOrP7x9WaynxMDb7tAx4H6 idovPFAf/yQ16Z0obaFHwxwlWEAJIm9VmhtzWCoNEWcmUyJdKFnmh5yuoU/DoSQmITTR LmZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RKr+0W2x; 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 l8-20020a05622a174800b00429c7c5072esi1907511qtk.179.2024.01.26.11.35.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2024 11:35:56 -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=RKr+0W2x; 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 1rTRyX-0001XE-Bz; Fri, 26 Jan 2024 14:34:53 -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 1rTRyK-0001WC-As for qemu-devel@nongnu.org; Fri, 26 Jan 2024 14:34:42 -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 1rTRyG-0002ur-KC for qemu-devel@nongnu.org; Fri, 26 Jan 2024 14:34:38 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40e8d3b29f2so14933815e9.1 for ; Fri, 26 Jan 2024 11:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706297674; x=1706902474; 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=0TeAfcJDcGJDZye+r/25zW/L60aexsAJdtgh4QaVcLo=; b=RKr+0W2xM2CiSxZZc1M55Rq2RMCfGYsNBWunBMbAA+ZQSXCeavRleGZRlgKRZeVGqF NnowFL0GK4ntrYk0hLVvTBggVWotbRg1R811Ov4DGqSsD0mjquNj4azQPbwFw3UJesFP AAjXzlr5BIwDlr6Vegdrr96GeERDxltYrDlF+avIqtvr6KLtRCIEVAQxYSTAv4cr43YW G9TTF6kfRj5bVi3+MCRqzXSIY6zqLjHapqaowwM0YRP4QwaiGIgqnbg7hUZBQThHmxnB W2zTDw1l8cV+rnsECKPRWKiHfRTibyh2plvSh61TepBSiOVCbwlm8bVjgfnXF32T/N0U 1pwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706297674; x=1706902474; 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=0TeAfcJDcGJDZye+r/25zW/L60aexsAJdtgh4QaVcLo=; b=N9IyNFx/1jhDXGNnCp2BRzgaJGfbdr600pLQUJU47obXSqBEFSffGL24aeTYgcnrpY aXWwARQF676l9mFZqfB6auhL5KEe3AEPt4QQkPd5f/yW7M/y8lcL+9mgksNhhKBwYamu BENLh53xaknx20hHBlnSDa9PFCNVRJ9FCINEWDKnfiOiRBGt0QSMKqfPsczCV0T2baYJ d+WZp7YtEwxUhatOu7YYbBwsIvRYez1DZZP5ZzQn6Q2+tNQzUT+Qk1O5CUKCwexLg+PI GE8VH1f1h6STzmjDkPsCGrejJ7bar0q5ig650N0T9WZqpnt4XTwZgjb/h0afVw0EX//M /NJw== X-Gm-Message-State: AOJu0YxFgPPVw4OJ96Sfwe4LhqPjceEpCaHTFGf2ROS6v89nKhOt8CH7 8X9Y/sGvQ25FY1mlff0dftmU4bSfNqnY6+jsEapLCzvM6MfxNXAO7B4LMx2bwsdmo+c1X1l9qAy T X-Received: by 2002:a05:600c:ad4:b0:40e:44a9:c2be with SMTP id c20-20020a05600c0ad400b0040e44a9c2bemr164051wmr.201.1706297674529; Fri, 26 Jan 2024 11:34:34 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id he9-20020a05600c540900b0040ed1df542bsm2676611wmb.20.2024.01.26.11.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 11:34:33 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Richard Henderson Subject: [PATCH] target/arm: Reinstate "vfp" property on AArch32 CPUs Date: Fri, 26 Jan 2024 19:34:32 +0000 Message-Id: <20240126193432.2210558-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@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, 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 In commit 4315f7c614743 we restructured the logic for creating the VFP related properties to avoid testing the aa32_simd_r32 feature on AArch64 CPUs. However in the process we accidentally stopped exposing the "vfp" QOM property on AArch32 TCG CPUs. This mostly hasn't had any ill effects because not many people want to disable VFP, but it wasn't intentional. Reinstate the property. Cc: qemu-stable@nongnu.org Fixes: 4315f7c614743 ("target/arm: Restructure has_vfp_d32 test") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2098 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/arm/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 593695b4247..2bed5987619 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1620,6 +1620,10 @@ void arm_cpu_post_init(Object *obj) } } else if (cpu_isar_feature(aa32_vfp, cpu)) { cpu->has_vfp = true; + if (tcg_enabled() || qtest_enabled()) { + qdev_property_add_static(DEVICE(obj), + &arm_cpu_has_vfp_property); + } if (cpu_isar_feature(aa32_simd_r32, cpu)) { cpu->has_vfp_d32 = true; /*