From patchwork Tue Jun 7 20:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579321 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp5489498max; Tue, 7 Jun 2022 13:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4eGX6THAvw/1apLwd4JD2lYq2AMRXnMl4A4xGPsiiLbpK0fJZY1TkQCRy0fh9ZeeBNfwV X-Received: by 2002:a05:6214:3005:b0:462:21ca:58b1 with SMTP id ke5-20020a056214300500b0046221ca58b1mr68921422qvb.47.1654634067193; Tue, 07 Jun 2022 13:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654634067; cv=none; d=google.com; s=arc-20160816; b=08YU9A6q1DtrNjgtiR5SuOc8r/B1+zWR3KD2KFTy7GAEN6FK8mefmLdz5LKhKIiLYh 0xXIOdLh2HJnGREUnfmIEz0eF2hshU3eHgGJtoKEGQwNqPlOxharwrQE8sYMpbmLu0+h bWalnMM1ebDRujrRlK2B5NQGsN0Y3V1rktbgaBxmtJd3or/xFF6n7U0M4nVuy2/RHMVx 1/fqTPETP5C3PTv1sPyyMEMxSuYJCxrfqIt91SER/x7jNkSoQj5uitpV1GfnGs9DuHNk dTnZ1GqEMgXh2vU4z2CS5GYGydUEDuobzZjd/O/o3UgV1QsdQzR5ykXHyrawqFThWxUk TuRA== 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=pLpYyWtmw6OHm0KZCjVI06POe96iERl3wGHLBQYXyAM=; b=StzCJeWuOT9HMrfMw8QxFypOpbfJmxOwB5xz+CbqSlPlN03e4ieqtbRiFVB3ceSSVe Fmu6zjKy2smPL9dGhyDVJKyT3KaRSVpnxZBVpTFVu7PoKVGGwiq4gVG42tq7NhDkzsUH TibsbGllAMqIoiOjCRxcsUWqaZZlVkNMvC1imXUyifYttsS+/NcYdHWK1l3HwSfWmCjr SuzugcqTqFJYTNyNmlJTkYBqlz1HKrK9A1tlOYtNJFx9n26dqWMt4vrG4SXUY9ESgdcg 4mYJQWMYzuRn0jwbytx0PCd0QbN4itFTITv5m0oWU5KxO3stmIZswPrXgk90fM31T6f9 0idg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1VSKjuU; 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 m15-20020a05620a24cf00b006a604fc0bd8si11108700qkn.479.2022.06.07.13.34.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 13:34:27 -0700 (PDT) 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=M1VSKjuU; 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]:40958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyfuE-0008Cp-Q5 for patch@linaro.org; Tue, 07 Jun 2022 16:34:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyft6-0007E2-0P for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:16 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyft2-0007D6-2R for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:15 -0400 Received: by mail-pl1-x633.google.com with SMTP id d13so133192plh.13 for ; Tue, 07 Jun 2022 13:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pLpYyWtmw6OHm0KZCjVI06POe96iERl3wGHLBQYXyAM=; b=M1VSKjuUvYAaG+gSzge94JduXDpf66YFWnzbHFZhUb6vHNVbIvM1JXkrZRdXDvmMrA JYrFhtdEhiphCgl2bTkuyOO109zBWaF5q6yIBbSVEpCeqE0rH9B6zUURXqUHckAu/CPA y5VDavPWlxcouT47hW5woqMJJ3B1sBuKd0U9VVX+p3MdvdJiWoqdbCJKvQ3aiEHWgF+j TeZXrQfQd0zpE0E/rZY6k8Ykthj1THio84KaiVux18BFpYMonmlqoqJOsYQV+qxRulCy gav7qZHU3qzBLEx/AvkSxuRE1yvfrHfbCkixqpSdL/N2D5qW71KX+IPd9IucDaze/wV3 0kvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pLpYyWtmw6OHm0KZCjVI06POe96iERl3wGHLBQYXyAM=; b=qD/42BC3RGiauyVl/my6nBLngs57ytHqU2yLJNYKMqT4GAxe3quZAlhX3cw/lg2TYl G8GqtJXYfSjsmDuZbfn8ZIcK89lFm3ud6yrEqOxR+52PfuDODQuGx5/QJBVBLjb8XP0Q s+PI1R5hyW+2Pv1YvWwXhNg9k9FsC+XK451fbm8cAq0nNArNoD6WWfckug7lPGgdli6J iPfC1P3dD44fsjyRIWfzsk9IT+bpVDzbW7W+OXXYH1+WnVXQEbd9H8SOCC9zOZ6rKo5Z ygQ1jqVGP8ywYKE2rMUv3iVj9MOIXKZ5X37wVceXcEzV90TS3ZYgB/GJKTWmCckJiu5u 0QCA== X-Gm-Message-State: AOAM532Kn3BrxUtTKjaI+YmsijK7OUbq9zJe/2Z/i6csGaXcmbMYUlH1 jdAl9MydvjO5jXVkXhG7DOS5LSaZkcYZ/g== X-Received: by 2002:a17:902:bb90:b0:158:a031:2ff2 with SMTP id m16-20020a170902bb9000b00158a0312ff2mr30624511pls.117.1654633990680; Tue, 07 Jun 2022 13:33:10 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:3cf2:c634:5b19:25f6]) by smtp.gmail.com with ESMTPSA id s22-20020a17090aba1600b001d9780b7779sm4227856pjr.15.2022.06.07.13.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 13:33:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Subject: [PATCH v2 03/71] target/arm: Remove route_to_el2 check from sve_exception_el Date: Tue, 7 Jun 2022 13:31:58 -0700 Message-Id: <20220607203306.657998-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607203306.657998-1-richard.henderson@linaro.org> References: <20220607203306.657998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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=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" We handle this routing in raise_exception. Promoting the value early means that we can't directly compare FPEXC_EL and SVEEXC_EL. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index 960899022d..8ace3ad533 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -6159,8 +6159,7 @@ int sve_exception_el(CPUARMState *env, int el) /* fall through */ case 0: case 2: - /* route_to_el2 */ - return hcr_el2 & HCR_TGE ? 2 : 1; + return 1; } /* Check CPACR.FPEN. */