Received: by 2002:a17:906:c785:b0:9bd:85f7:2662 with SMTP id cw5csp9325ejb; Wed, 25 Oct 2023 16:42:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOcF//aLB+h7sDB8C7xh94TYQsSDCMwlL9VeuinDYMgnX0w7+HltEUm/DPCJ5cWdq7379k X-Received: by 2002:adf:ef48:0:b0:32d:84a3:f3fe with SMTP id c8-20020adfef48000000b0032d84a3f3femr11773645wrp.41.1698277343180; Wed, 25 Oct 2023 16:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698277343; cv=none; d=google.com; s=arc-20160816; b=t8XTcnYxdpuRCqAFndFR8Hs8ITaSvYB5vKTob3bQ3oXsAAeWRCbjbwZ0NUXW9LtKEl rQfnEbgWSRfFM9m/AgPeBJl7lWv4xevq6rxmeHrNHp//9XKFn5y1gq/cLj2Y7lDLumJz m7IDeN12U4QnJTz6AZ7O47T59v98A0kgB882g3Ae+1OG1IFN0Puh2mXAFu7NDaWrLKBf TuoYJ3Tfxc0SWN8xd0wDXsNC1TVfZHmSxH6RPog5uaRLQH7/9ezGNTU8LPUO/wGWiKE4 Hy5ampDtbv4MQf7Ffak5DpbK9zAeC1sbcpL4TR4enpy23xLeEJLFKKAHVTGMSmf9nVnm txuw== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=nARN9n65iF4g6yjW1J1v+Ru5RhoGyCy34q1vACMDUok=; fh=PRoHjD/djUAHQXeMIrzpgUv27otx4sratw48fpw7M0k=; b=xqEXHx/vsZA2sVg19wFhW/WhmWB12w2P/zd5/7Ee7o65tZgpORrdhEg7C62gXnYrMt yhZAMgpAplSogoDG3tHRPbb3Mat8p6ApKChuuupGQAUxhjfwbWZNYuexf3dHlrhidMeV VwiZhQ5Xg66h1x8LC/bzcvLxtAsOiM5B8egjyfEQi9gwtHrXF/0RgSh0duq+wRUaCgAI almi8tvytIWjfc8Bw3TKd1SMmaqJf/GA9kggMbK8N3twCdBDFebC5jauGo3mFdS4Xuwl bKnpVByCUTqB70LwsCVxmIm3NIvRCQ3fpVY1MukMTZUSy0Rnx6VTuSkWeAfap4u33MYZ f4HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QXb1nrmH; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 g7-20020a5d6987000000b0032da5173eeesi8343135wru.934.2023.10.25.16.42.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Oct 2023 16:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=QXb1nrmH; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 1qvnVo-0007HN-1z; Wed, 25 Oct 2023 19:42:08 -0400 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 1qvnVj-0007Fh-Ca for qemu-devel@nongnu.org; Wed, 25 Oct 2023 19:42:03 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvnVV-0001N2-Jg for qemu-devel@nongnu.org; Wed, 25 Oct 2023 19:42:03 -0400 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6b7f0170d7bso274385b3a.2 for ; Wed, 25 Oct 2023 16:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698277307; x=1698882107; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nARN9n65iF4g6yjW1J1v+Ru5RhoGyCy34q1vACMDUok=; b=QXb1nrmH/LTpRCEdZK+uFLjzWtkvntdlXWw8df/2RvzYuMQkNBr1qOzGpoA2Io7fwl 2SSI1ds8R+W76cCZ6E+nt2cFA8iywXKJX8ozspRxBXEozReBed00Cykb1oDtL3zGmGMp mfthfI1TZ2KZMgdduS6lEyDtNhZnJJC6uXHAnKDY6+qQmSjMk8cb2YXDC486tew7h6Tx qkcTBr9o3JZ/d+RAbcPbB9wecH8pU5YVyijpBgg2PY/Hsgqi2DMaucCiNwHzfUXBkncN wT0BvebD0ukqBdKQWWr3W6z3Ry6jL50+/NoL8hBM01hC4osGmPT8yqwTD4Um5E1kMcs7 ExAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698277307; x=1698882107; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nARN9n65iF4g6yjW1J1v+Ru5RhoGyCy34q1vACMDUok=; b=dewQPZntkq5cq7NgVPFgrWVQHN5cP4ELvbi0tbz6LwA7aRPgTIaIlhSsyTFILSV1Zw SVl5cqgIvOwL2HoXz6vY/cdnkPJgPuKJ2epbe6uVWnBd+deLc/+agL8M7RqkJhPjuqbU w2PqtDgUp1eoZ9wcDWPHlktdLBbbzbf/fFSCE5IGSAoVMzqOs0coPU84kkTpzf1Gb+rE Hcum8p+eOeK/JEraUBPpfX/zCJ2AUVIexRnERGPv+zYff1MjgkA9HBQzu2jGaNy3wzVr nzS7x8bfG51eRFTH2UWrjSOn8K4z2DoOGMxnaNMLAw3jcQUJZG++qr0/tq3qcYVXWsYt 4sDg== X-Gm-Message-State: AOJu0YzyjdYPMCLIC1vZEztMywewBRgjNythT5gdl7RcUQqWdaAqOcrr duH7uyGANc1mzpcM+07tpwanRw== X-Received: by 2002:a05:6a20:3d8f:b0:15d:5f9a:3921 with SMTP id s15-20020a056a203d8f00b0015d5f9a3921mr8019343pzi.27.1698277307638; Wed, 25 Oct 2023 16:41:47 -0700 (PDT) Received: from [192.168.0.4] ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id y23-20020aa79af7000000b006b5922221f4sm9931736pfp.8.2023.10.25.16.41.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 16:41:47 -0700 (PDT) Message-ID: <12febade-6f85-484e-b416-09fce7eb38a5@linaro.org> Date: Wed, 25 Oct 2023 16:41:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] target/arm: Fix syndrome for FGT traps on ERET Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org References: <20231024172438.2990945-1-peter.maydell@linaro.org> From: Richard Henderson In-Reply-To: <20231024172438.2990945-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x436.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=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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: D6fA8h2ZxuPy On 10/24/23 10:24, Peter Maydell wrote: > In commit 442c9d682c94fc2 when we converted the ERET, ERETAA, ERETAB > instructions to decodetree, the conversion accidentally lost the > correct setting of the syndrome register when taking a trap because > of the FEAT_FGT HFGITR_EL1.ERET bit. Instead of reporting a correct > full syndrome value with the EC and IL bits, we only reported the low > two bits of the syndrome, because the call to syn_erettrap() got > dropped. > > Fix the syndrome values for these traps by reinstating the > syn_erettrap() calls. > > Fixes: 442c9d682c94fc2 ("target/arm: Convert ERET, ERETAA, ERETAB to decodetree") > Cc: qemu-stable@nongnu.org > Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson r~