From patchwork Mon Aug 21 02:59:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 715360 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp1627723wrs; Sun, 20 Aug 2023 20:00:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRHUSbgDzcQqBu0IZ35G5qpVyedsF5RKTbIQTclWU2oCVOyyDXJ65iS8aPo32aowtz8u4u X-Received: by 2002:a0c:8c8a:0:b0:63f:80a0:4eea with SMTP id p10-20020a0c8c8a000000b0063f80a04eeamr5644397qvb.24.1692586841777; Sun, 20 Aug 2023 20:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692586841; cv=none; d=google.com; s=arc-20160816; b=i1p7H6VCElX2whXo78mfD2Y6FAOoROgF+63lBJMxVYTs3EcLvsSWFS/Nm2D6WmdPaP YYVMMyTEDxEopNI/9MBwV/XopSg3l8J24C5NXTIbC2edvnScMFCrKd1sJKO1YlY/lbS8 g1ubfoAhFXB6aDPr2pLKS52z21Y4nfVMZoHxpjX7z4neiAzGDHS19mM90vzwvR3qRayh hixH3uY0sJQK3egtJyK/YYKjVBu1GcgZ4k7Nf5S/nFpay+I4N7N4GsSG0blT//KE1RZ5 OWpTK1gWkwMrrFrVqT6B3TZ+GoSUPcS0gYVPadV+vfo22/GFdzh3FVsFKkjnqd6bGvRx jl4Q== 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=peYWs1kPHtFQSShaofkQJ//VXB5VvaV3hfjcG2ER1aA=; fh=qGvfFcmhJ+sZxBUCSWSQMWLViT3X2VBgulAZCPioWs0=; b=ymqdGBjMe2bvdbGd3xfGsnlKCkjucQDfk5arBl9bM1swqraScpsH6TsZ14nNQzbtMK XKResPgfGKnHYHGne6lcGdPWQMJJpM+tM/fkYPK/TN0VlqJ/ewGcHJmv03pyt8Mh61Z6 EeP1ExmzXh5HwANUMtlGmx6TsNCiRgu+o9qUs77/k/S5mx3LjFZe9ocz3mlWro56wyEs lLhmkTPqNfwPgEadAPboc1PC1Z/ZJ/wy+qZv93ayotOZQpfcTNzoRNPioSQuLOvsALNr xCA0z73TGaOYLYk8v+seAA/yo35UI9d/ck7X3OCDbs0f+OncUt86C8ORfosPU7vKTIHs XAUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXYtq2qS; 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 i10-20020a0cf10a000000b006365b4310a4si3431384qvl.254.2023.08.20.20.00.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Aug 2023 20:00:41 -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=gXYtq2qS; 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 1qXv8p-0007o1-6y; Sun, 20 Aug 2023 22:59:43 -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 1qXv8n-0007n9-Jm for qemu-devel@nongnu.org; Sun, 20 Aug 2023 22:59:41 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXv8l-00016r-8t for qemu-devel@nongnu.org; Sun, 20 Aug 2023 22:59:41 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1bf7a6509deso2094375ad.3 for ; Sun, 20 Aug 2023 19:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692586777; x=1693191577; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=peYWs1kPHtFQSShaofkQJ//VXB5VvaV3hfjcG2ER1aA=; b=gXYtq2qSJrMAbDTSxDU1TELuC1S9XJFx4Z7v77HQoxoZ6VAkTB8R5g6RznDDFWCVV/ yv21HuVmNVhTSd7t1IxZRwRbP3Yp8Wmc1j2d89ryaIqU6filTzd1BOmzwxn4trmzUfcf KYjEB+bWd3wZvYXWi7KirjySOO41XveGgWy2LNnvFyLvw9C/ahQpkqGdD/9ZSufIOWJj yBEzxsy8yHC8s/1fI696dMDXmr8wSJHZOc8RcqNSkkUYbxQ3P0vhaLJ4c42JJE5KjaEu ahdW8dx/pSYLihP3GMo4klhtWjGbAcTHpx+xwDGVfChU7dgECBRzduyElktF3hFwmDg6 k/cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692586777; x=1693191577; 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=peYWs1kPHtFQSShaofkQJ//VXB5VvaV3hfjcG2ER1aA=; b=kXGV0qLqbLaQ98nmS584+/FPeDlsEJI6wVa7/CVmLPbiKlUb43no0vPrAi4mWtvnIR VN4Fn6MHIJKDsDkS2HWHEhlh4pCcOsSZVHkyoTEDP2524NCaWwYQQmok1a1RIIVZF0P9 M3kHd1Z7P1ummm8QhO52/b/zASRkYfssF8uX7QkaAPraDW1OsL04FJQ9ycYRapQCcud5 wa/G0C5j3fzXi1i4gcGmZFYaI63+2Oz5iR+i0xg0QzomQZ6JC0vDZ01xYaUqafChTXZ8 /Ues5cjfjB9JsvPUN4DBYClZ8uMhwW0gIgQXXcsYrXtIgpuEzKjcCWm2Myjz0nw/SV+t /vmw== X-Gm-Message-State: AOJu0YxkLCcI7XYOI+iD9NSTSsNjDqtRFs+2XJvJUvpSbAb32a2iO57l JyRgfTkvmCvDqf1ciK2OgDHfSGeiTT7Cmlvbyd8= X-Received: by 2002:a17:902:efd4:b0:1bb:c87d:756d with SMTP id ja20-20020a170902efd400b001bbc87d756dmr2994217plb.42.1692586777359; Sun, 20 Aug 2023 19:59:37 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:7da6:8db:fd7a:4d62]) by smtp.gmail.com with ESMTPSA id s2-20020a170902ea0200b001bc9bfaba3esm5769293plg.126.2023.08.20.19.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 19:59:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org Subject: [PATCH] target/ppc: Flush inputs to zero with NJ in ppc_store_vscr Date: Sun, 20 Aug 2023 19:59:35 -0700 Message-Id: <20230821025935.401914-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779 Signed-off-by: Richard Henderson Reviewed-by: Nicholas Piggin --- target/ppc/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c index 424f2e1741..48257f7225 100644 --- a/target/ppc/cpu.c +++ b/target/ppc/cpu.c @@ -59,6 +59,7 @@ void ppc_store_vscr(CPUPPCState *env, uint32_t vscr) env->vscr_sat.u64[0] = vscr & (1u << VSCR_SAT); env->vscr_sat.u64[1] = 0; set_flush_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status); + set_flush_inputs_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status); } uint32_t ppc_get_vscr(CPUPPCState *env)