From patchwork Tue Jan 3 18:16:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 638732 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp1391054pvb; Tue, 3 Jan 2023 10:19:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXt5vapkEMENHcQYglv0CMuVQl/Lx1CjT55/OwkwQXCCSK2YZomw/rQJ5wqjRXYRFBu9G7F4 X-Received: by 2002:ac8:5448:0:b0:3ab:6cf1:1e67 with SMTP id d8-20020ac85448000000b003ab6cf11e67mr55017662qtq.4.1672769964743; Tue, 03 Jan 2023 10:19:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672769964; cv=none; d=google.com; s=arc-20160816; b=Cz/FM71RPX2t/N9Gwt2HLKphhR6X0CCKaKJJSqC1samvh6dbbChwIxY96AMK22vTDz Sz5yZycs/PrhIMzwaUtUy6IdqYHdA+gqi8Qe4gsrWtA0Ar+NECx1Iya65RH8it101Ek4 WxWKZTMXPqm+sfYNkHnJ2h+NoG00ZDQzQ9tDfHmjR7Q87mEy2EShy15Qfc45ea5t2Aj2 806+ehCEI1BPcs4n0TLE18QYMg43gm7aqtERzwBqLD6LBwdf93gJPvvOSOC8Yqqte/hC NqYoKHdKY3DIKE7fYk+VXBtv2CrQzepkqc5d1CZyPxk1NEdIro/WQN95S1geh7Hj9RyR xBPA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DDbFWUAdD66ccbGgAfeLRZAs/Smk+GVAFx7IHK4amAk=; b=wUZOq8h4a56kHntMRyowyDFqmARYbwBsDBUXV8uiMHHflVh2xeOwp6WXMhVWnTJSXv L03jt8/vADKqs6127OsKn2KmkVJWOoXNNkQfs96fYE8ObcIeuHM/YgHRDR/AwQNRbWDE Hl759IXUiS2zMJaTA6S4f81uyGi3Zg7BgULQ0wYfR9JtUSs8wot7ocx5oBpcCO4u8RoB sBEel0JzHHHkRPHtCgzIcSThLFW6RINFwj6mkWRJbDkZJevMSzSTdLxxtrwhVlAibmMQ jPj9XBDtXcdBBbwsfSomDdWavdzqBwz46J3VLCJTFkraFRsAOecgDRNBi8ivDhhCg29i Csug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QIfFCDIx; 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 bw13-20020a05622a098d00b003a6a5866c2esi17132988qtb.171.2023.01.03.10.19.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jan 2023 10:19:24 -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=QIfFCDIx; 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 1pClri-0000TB-Is; Tue, 03 Jan 2023 13:18:22 -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 1pClrH-0008Mi-Sn for qemu-devel@nongnu.org; Tue, 03 Jan 2023 13:17:55 -0500 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pClrF-0005HE-W9 for qemu-devel@nongnu.org; Tue, 03 Jan 2023 13:17:55 -0500 Received: by mail-vs1-xe2e.google.com with SMTP id o63so27788835vsc.10 for ; Tue, 03 Jan 2023 10:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DDbFWUAdD66ccbGgAfeLRZAs/Smk+GVAFx7IHK4amAk=; b=QIfFCDIx/W7d74QjtjWe7bt8JniVrY7ODkBsJwGryfLm9jAp3K+oF9eh23UGyaskA5 9+ZUJr8zCkJcxqA7fljwMnWU5AGmSyD9V6KsEe7i2KkCCMQONDSBe0GL6FksPFtfdp4r zLxyyjES04YtJmMkKVRo1lKMbBdzALphAdct2ln5vbIS7YALojYeenm9/MUc+GmVPR6a Ci+6VOqkIoCqkUwj57lgGdKQIjQx+0u06pfgbe1vogvXORoNlyNPwu6WmvTrfcDJP9z0 1XLwuwTPvuVjzZx9V+OX4TMsFtAKrTTqj6LoLrrJOnCj4K9Ft/v1fivZhIXJS5K0JolM O/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DDbFWUAdD66ccbGgAfeLRZAs/Smk+GVAFx7IHK4amAk=; b=Qlh5rXxzRjoiypf+CPPIoPBIUnCtIFwJ7rc3ow711PwxaodRSv0ckHjrsV6tI50KDz T9GEMypVJS0sAmp1W4WN3OKFltG/5jVKMpmbik5zDgHVgSCCMN4ccwrOd78N5d1cwDin VXim/SnETREN3hCpVJBuvE2wfSNnlD/soKUTd2Nx6G3dwSIACI0B70//h5FTJgCN1p1L IWVmUwbtz6qidLBQaMaV0iOf8h0xNDsjWQKjUG7sSSHEu6Vo15/WCOHO8gOsNZRYIy3Y MmUI6LXs3FgaE5VPOBpnqdG1vcPw2pHTAGvT2WWz5DUDNEuQnAOu9CIMjjhoe9y4/ged wR4Q== X-Gm-Message-State: AFqh2kqgdfz4BYw4+DLveuKw+PdFIGURHVDD7NgTEreO7rL6pZYio4Ts ZHUOZ30IyZsUln+J8vH41qFc0hcgxzuwrJyIreI= X-Received: by 2002:a67:b44a:0:b0:3b2:fe5e:6b73 with SMTP id c10-20020a67b44a000000b003b2fe5e6b73mr19424674vsm.22.1672769873102; Tue, 03 Jan 2023 10:17:53 -0800 (PST) Received: from stoup.. ([2607:fb90:8060:51a2:184b:6e49:c396:be2]) by smtp.gmail.com with ESMTPSA id v2-20020a05620a440200b006fed2788751sm23042354qkp.76.2023.01.03.10.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 10:17:52 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, berrange@redhat.com, eduardo@habkost.net, armbru@redhat.com, ajones@ventanamicro.com, alex.bennee@linaro.org Subject: [RFC PATCH 21/40] target/arm: Remove aarch64 check from aarch64_host_object_init Date: Tue, 3 Jan 2023 10:16:27 -0800 Message-Id: <20230103181646.55711-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230103181646.55711-1-richard.henderson@linaro.org> References: <20230103181646.55711-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=richard.henderson@linaro.org; helo=mail-vs1-xe2e.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 autolearn=ham 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 kvm32 was removed, all kvm hosts support aarch64. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/arm/cpu64.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 28b5a07244..668e979a24 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -1095,10 +1095,8 @@ static void aarch64_host_object_init(Object *obj) #if defined(CONFIG_KVM) ARMCPU *cpu = ARM_CPU(obj); kvm_arm_set_cpu_features_from_host(cpu); - if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) { - aarch64_add_sve_properties(obj); - aarch64_add_pauth_properties(obj); - } + aarch64_add_sve_properties(obj); + aarch64_add_pauth_properties(obj); #elif defined(CONFIG_HVF) ARMCPU *cpu = ARM_CPU(obj); hvf_arm_set_cpu_features_from_host(cpu);