From patchwork Sat Sep 9 12:59:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 721093 Delivered-To: patch@linaro.org Received: by 2002:adf:f64d:0:b0:31d:da82:a3b4 with SMTP id x13csp259732wrp; Sat, 9 Sep 2023 06:12:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeNKEE9ZhOA7nEBV4badXuQhjC88XShxPP32V1v35wr8Iap8QxbxPCYGfONKHLU07/G80+ X-Received: by 2002:a0c:e08b:0:b0:647:3387:fe44 with SMTP id l11-20020a0ce08b000000b006473387fe44mr4771993qvk.5.1694265158503; Sat, 09 Sep 2023 06:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694265158; cv=none; d=google.com; s=arc-20160816; b=VnXdyK8CBXqNSNRhdahZBbvXtDb2vltIIiOrBr9i+uSGwVQEIVh6+eRJfFNBNnUhRe 4KhC0ktgWOubY4/US5as29KGB6GBdFIMtr2FtmW8PBy57RtoaSr0LwVw6FqbYXTP/Pp2 Xo5CQsye7I4UuDv1ipti+4l68wZmk7pchCOXAjo0Yn4pBmv51vkqHMkgOTO7HVQyuWil FS7mmPEXufC5WnkR3dAuUXjOwJ3ytPkv1Y3TAzZbrDAVzCQvnVkx3nCPbrgN+KCWDSsW WYhLIIfmDCzqJZRLRyqbMdJb0/GYYXjx0X/nhLquDswByVDyE3kN7qJqoeCPiAc390eU maAw== 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; bh=GXYS+sYKiVBy+fSQt1Ot0m54SrGPydYhNArO5/hLc+0=; fh=+D0Ov/H+ewjMrdUrA5bt7T5YdpcG3fBRsCPTLxVLxV0=; b=sj7Pfgi6/SMvSfVJMoypx6QxaHJ9vV0v3zvQUruFmM+urX97fQvFM//9C8hAaaDaPl FiYSGcVnj7fmfNNdSL8/3U7ct0lnLc5XKlP/CdnSTz7WmJWZkD6/KY1j2gf5jSREzX3R ypQ6hDMl2q1RDHcrjq1cBLqoQFb3n3MwfrTlwJVkiUgCjjzw3F4WWmcnvp/h2K6GkdVs jsUlO1p3Ztj29TnMfgUzbwceGm9RA/4oWJA4lQZhZe6MjgkgPUku0c3Wpb5yzTfAdkTx ijVNoJkK8IBW02Dywv0Z3r0YI9p1QnGWYBRZDs4mqoJzLvtclJ+BeUsJKTq0dbokU+s0 i4vA== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s9-20020a0ca609000000b00647fe073b62si2324347qva.531.2023.09.09.06.12.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Sep 2023 06:12:38 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qexc9-0004jN-Uv; Sat, 09 Sep 2023 09:03:06 -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 1qexc8-0004YE-7a; Sat, 09 Sep 2023 09:03:04 -0400 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qexc5-0002wa-L2; Sat, 09 Sep 2023 09:03:03 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 12CA8205AC; Sat, 9 Sep 2023 16:01:19 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id D632F26E12; Sat, 9 Sep 2023 16:00:27 +0300 (MSK) Received: (nullmailer pid 353145 invoked by uid 1000); Sat, 09 Sep 2023 13:00:22 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , Nicholas Piggin , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Michael Tokarev Subject: [Stable-8.0.5 30/43] target/ppc: Flush inputs to zero with NJ in ppc_store_vscr Date: Sat, 9 Sep 2023 15:59:56 +0300 Message-Id: <20230909130020.352951-30-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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 From: Richard Henderson Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779 Signed-off-by: Richard Henderson Reviewed-by: Nicholas Piggin Signed-off-by: Cédric Le Goater (cherry picked from commit af03aeb631eeb81a44d2c0ff5b429cd4b5dc2799) Signed-off-by: Michael Tokarev diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c index 1a97b41c6b..6e597680fb 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)