From patchwork Sat Sep 21 04:32:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174175 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp248672ill; Fri, 20 Sep 2019 21:34:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxe6Cqalq3qhzYSzf0E/L14M22J5Xv40tZJbuUFdmdojC8fZQ/1gl8kyZUkmCPOVYamCdEi X-Received: by 2002:a50:ac0a:: with SMTP id v10mr25593371edc.83.1569040480570; Fri, 20 Sep 2019 21:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569040480; cv=none; d=google.com; s=arc-20160816; b=irJS7JjvcncA9jEylDSlQzVhcO9lQpG2sHsEWHZT9kQFLyx3MGOYuHgRKk7+B/Ifxs aFzKDBtcd0rUXVaThGxrgSEl7vyeKJ/7O3+EqslpPECmYVMt56e3qNo8ItiCFVX2VT+Y Nqr3fgFvVCqBOUEioKfwF3Zk7gzi9fBECeMSxHHeror9Vh5TKARLu0iAGhHU1y/05u34 1mMT9LvTcBQO7+bXXoJs8JpjdLaSVoQNTzc9LRy608fxEXlOu0/A9WzzKt6DhrqwdY39 9r80qL5A+sNEZcvIynBJH9qhlmBSA6bcr6lHCYbCN9+UHXqgatJvOj3lu9d8dHMshI+n s7ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=e9wUlJNq9/BSGM/fpYcG0qtVD5/JBFR6vCeczUn1tOI=; b=JO7Em1IkChOf+EshSUjaw9O8qUstvrujBqpCNpYNQNy57EBQeWjvuLrYAHFNzHKE76 6S8Vu2r+zvWN6n1rGMTIfqoBw1e2ROxooFbV9u2dpJQsD04Nlz4k0g1g/hYPIZlP9XO6 ezqRgK1zg04VZTYNbiwBWoZivYMp34NybeG+romYaUrNOSvgUDrdpWUI6om+/vAkSnMK FbpmDuKznQKb4JN3sSJ7iwknVp8x8OVBhg+G+MO1s+Qv37OKFxp2SbTh3+ZSgFKJx94o Yx9WOgIiwPs3qiFvqWh47kU2OKPxiYhu3BGppIP36eJaiIyTfbcalSWQoRp6W1+aADHn EAUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ID4a1Ib9; 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 k63si2888837edc.347.2019.09.20.21.34.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Sep 2019 21:34:40 -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=ID4a1Ib9; 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]:38188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX6U-0003XN-PM for patch@linaro.org; Sat, 21 Sep 2019 00:34:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40656) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX5K-0003RK-5o for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBX5F-0006YO-G4 for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:25 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:37196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBX5E-0006Qg-Lv for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:21 -0400 Received: by mail-pg1-x543.google.com with SMTP id c17so4987282pgg.4 for ; Fri, 20 Sep 2019 21:33:08 -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; bh=e9wUlJNq9/BSGM/fpYcG0qtVD5/JBFR6vCeczUn1tOI=; b=ID4a1Ib96z8s01zTwAh4sEYfjen+2ce6KRW+9NxASiLytDC25rFt+YdjDhL07suSVy WrTyHSfvdeTtsq4LoYeou9pQ4ONyD4LZdYtw+eY8jQl9U4Io3/BODxyN+IC6/nk61LaB iUPoKBpXd5SiZfyCB4q+UvSzOZH1lIXiIdJZQEiM/C/4cBvp74K0Ptm2nkFiyhfYueXs ZVgoDM3dQ5ZECl/SiabkXgJzI9vvHUMdvaD5yVPGHN/1wckxGjENCpp1Z84se8GQUU/G 3T4utZBajWSDYCE3yaVQ0zOG90KtHLrXpAmJNcAoSJTE57r3yDTmSli/hOUJ/maQ/luI Y6Ig== 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; bh=e9wUlJNq9/BSGM/fpYcG0qtVD5/JBFR6vCeczUn1tOI=; b=BS77s4Uy5FtRHtRkIdKoRCZITikQr2Nb4Z0QH5/SNxh8tHMnUEaPtT4NqRyh/xAjQV 9a+Soo7Rt3ATmztN8sj6+u7HStqQdWXpMnDZGkBUYgIm0xdB8Y97TjxOtI51UHWkVAV6 ejgQ7Yih1b1iLH+frrN5OjsRipi8XYGV8pkdprZhAQ+OaSrQUXRyS3RWshKM91czEI3a xLE/dmQ7hJ1Dl42kdjqoWHr1q9Cf5zaC00fHeDG2I7D4A44kXuHG0PRO4MQj5LeImgdS l25LcYF4R8cDE2s/ZSkMnXoFCqZieHR1uRByvEDdIVm4q006cjy/mUsD4OhEygojq8H8 m5LQ== X-Gm-Message-State: APjAAAUZlJC4TMwFn+sRRS32r0FuvYnf7Cq9boMOepI8/VrYWOSdL6E1 0yQI6UFjggt39uekqnA3fjXM2YM8uVI= X-Received: by 2002:a63:e512:: with SMTP id r18mr11722947pgh.117.1569040386897; Fri, 20 Sep 2019 21:33:06 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 193sm4179986pfc.59.2019.09.20.21.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 21:33:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 5/7] target/alpha: Write to fpcr_flush_to_zero once Date: Fri, 20 Sep 2019 21:32:54 -0700 Message-Id: <20190921043256.4575-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190921043256.4575-1-richard.henderson@linaro.org> References: <20190921043256.4575-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 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: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Tidy the computation of the value; no functional change. Signed-off-by: Richard Henderson --- target/alpha/helper.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 2f959c65ef..1b3479738b 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -69,14 +69,13 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t val) env->fpcr_exc_enable = ~t & FPCR_STATUS_MASK; env->fpcr_dyn_round = rm_map[(fpcr & FPCR_DYN_MASK) >> FPCR_DYN_SHIFT]; - - env->fpcr_flush_to_zero = (fpcr & FPCR_UNFD) && (fpcr & FPCR_UNDZ); env->fp_status.flush_inputs_to_zero = (fpcr & FPCR_DNZ) != 0; + + t = (fpcr & FPCR_UNFD) && (fpcr & FPCR_UNDZ); #ifdef CONFIG_USER_ONLY - if (env->swcr & SWCR_MAP_UMZ) { - env->fpcr_flush_to_zero = 1; - } + t |= (env->swcr & SWCR_MAP_UMZ) != 0; #endif + env->fpcr_flush_to_zero = t; } uint64_t helper_load_fpcr(CPUAlphaState *env)