From patchwork Tue Sep 24 21:00:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 11159603 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C78BF1747 for ; Tue, 24 Sep 2019 21:03:48 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CB8820872 for ; Tue, 24 Sep 2019 21:03:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c4GaNm6t" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CB8820872 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCryM-0004pD-PE for patchwork-qemu-devel@patchwork.kernel.org; Tue, 24 Sep 2019 17:03:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55469) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCrvy-0002XF-Ut for qemu-devel@nongnu.org; Tue, 24 Sep 2019 17:01:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCrvw-0004TD-2i for qemu-devel@nongnu.org; Tue, 24 Sep 2019 17:01:18 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCrvq-0004Ru-6Z for qemu-devel@nongnu.org; Tue, 24 Sep 2019 17:01:12 -0400 Received: by mail-wr1-x441.google.com with SMTP id l11so3630374wrx.5 for ; Tue, 24 Sep 2019 14:01:09 -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=/xkUA4er3qxVvIJWrvA6CYF5PpbAnHAJvGVcHOa9aSM=; b=c4GaNm6tcl2yLcAnJxhd2m1u+F8q148fzdagCmY0QNv4feVIUw9QcEBpUrSAHA6hsU 0afwlRrj/xlKo+23JzAo04SGeSz/yS1j8EVeqTmM2L0HF8itXCAVS4Qx4Q6UE1w3zzf3 TEmgi+pXzreq0B4QKI8ZxCkOLZC3n/g7Rrh8nkAukEQJst80z5wtkiLm+EcNlUwLz3vw wPygkyjxBUWoJoxlYeHZbt2DUdJaBxLn5q1nRyrdiiXbPP1/eYeFpSOejQ/hEu2en3AQ sQAJWEgiLWHC09L4n2LARNCuMHu+m1Zp78Xoec3KgKGcxmAb0LFKzjrzdjAZCnyZjy3Z StZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/xkUA4er3qxVvIJWrvA6CYF5PpbAnHAJvGVcHOa9aSM=; b=VqOnPTxdqyRaudarkM0ELWc+LlAMY4mhoCYm6bsZ84DXXktKmRDoGABnhEbsrhZBWj 0cM+w8m1h5NdED8tW6hv4xAIgc9F6LwRwuJjVt5K3XH/QeWjVxfBe9PmvTCnU6bNVyhp 3eicuFVL43lsLXaGjZK/thmcoXg36ayGOgC0hVT80aEuNcKjrxUQgYhwCMGhgCP5zGAu ruIDlVMuE9mfDdW6PdLikG8GMcUlfB0ckr+uVdXLlwaqnOu0bWV/RULLCvnhuZPLgJFZ 4DK57wNpTeWusvKOLMA9bJ0J7030TAk9S2aN04tLJ3v+KHMi+cKnd9D5t7sI8UIJWTf3 PvSg== X-Gm-Message-State: APjAAAVuQCKlXNqCUqBZHBIr0XADafnrb9zAjpYqoNDidlD7yQvZgCdH yf9sb13kvqaVJm8YCyluQoEiQw== X-Google-Smtp-Source: APXvYqyEmJ/JHHYvtpw3KjuSmIurkmGOQ6vwmRyWIMJhBTvXjVgFJL+OMFZtSN+u2wUmuOeUeFMfkg== X-Received: by 2002:adf:9cc7:: with SMTP id h7mr4696640wre.193.1569358868771; Tue, 24 Sep 2019 14:01:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y5sm1434588wma.14.2019.09.24.14.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 14:01:07 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0E2A41FF8F; Tue, 24 Sep 2019 22:01:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/33] target/alpha: Fix SWCR_MAP_UMZ Date: Tue, 24 Sep 2019 22:00:35 +0100 Message-Id: <20190924210106.27117-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190924210106.27117-1-alex.bennee@linaro.org> References: <20190924210106.27117-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , jsnow@redhat.com, f4bug@amsat.org, Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson We were setting the wrong bit. The fp_status.flush_to_zero setting is overwritten by either the constant 1 or the value of fpcr_flush_to_zero depending on bits within an fp insn. Signed-off-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20190921043256.4575-3-richard.henderson@linaro.org> --- target/alpha/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 6c1703682e0..10602fb3394 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -71,7 +71,7 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t val) env->fp_status.flush_inputs_to_zero = 1; } if (env->swcr & SWCR_MAP_UMZ) { - env->fp_status.flush_to_zero = 1; + env->fpcr_flush_to_zero = 1; } env->fpcr_exc_enable &= ~(alpha_ieee_swcr_to_fpcr(env->swcr) >> 32); #endif