From patchwork Sat Sep 21 04:32:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174178 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp250920ill; Fri, 20 Sep 2019 21:38:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0hGVbZakmoFOZnNKWdQ51kFdBfWrSy99/6zgmphyqf9hkIg2v+/0twTSL+TnlY8ROlEtw X-Received: by 2002:a05:6402:1501:: with SMTP id f1mr25655876edw.76.1569040694311; Fri, 20 Sep 2019 21:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569040694; cv=none; d=google.com; s=arc-20160816; b=HFtonN2s57E+d3/AAAbj/TOsYgyJD3cZmt4RjtZOSshDWJ+M0ENg+TSU+Xs1m86IUx /9WEsLm9py11ZAW99lkTn1w/tfMjYubQH9Hf45dxoAQKxJdx+4aKk+NF1etOUvq91ArH IcXRbIky0O4sFPzu68cmVmlBlogvydanuDnp1606f3fiIlBMk1ORq72W7/EQLVnR67A4 qOcNnAhLOSIXjJDtMDwwY8XBAFnSvpkJs3NjA9w5RM0kiNus1Y+aEuJqnPzUJ63+YLF9 fFKa+nPnLZCQzACfAoMfI5+l85J1oG3wFg3OAuEiqO7mIUSqZQ95vXqDz5z7x2tRQ9y9 rjgQ== 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=N9p66J3CyRGSggPL0jEHpJ6N3kmg+tOoU7mSBRlNkcw=; b=Pl/S5uipWaLZ+rQ/83gawEdgM1tEJJUkGLTRKmOUtZET2Nnm2nhXuna18cFcBuXF08 fUb5L4SIiv/hSZYx9ytrqqcXw4Zhux9OGgkf6lqY63lFznCUUhjMPgl1G8Gp8ma8hQbm SawF2GcSNXm/1tGcIjCoZPNzvHpY5DWCEQsalbZig77b1rm7KBSoqZJgpyB659b/oxUy jwWDmJoQ5Gt48yW+Usu5nbQ92KUvNT+bkUqe9Wc19CHXtECbPUBMOhurTzEqdkO2GXMZ i7dpsC7EJZPg0v7qRN6F6ViUSY+l+Rve7zNnHUynZV/gJKXH46W1w3EeajyZsm9tprRB nL4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xpIFQJxm; 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 b34si2945472edb.439.2019.09.20.21.38.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Sep 2019 21:38:14 -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=xpIFQJxm; 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]:38792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX9w-0007Vq-W9 for patch@linaro.org; Sat, 21 Sep 2019 00:38:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40496) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX56-0003JV-Gv for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBX4z-0006Ph-8w for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:09 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:36572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBX4y-0006P0-BZ for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:04 -0400 Received: by mail-pg1-x544.google.com with SMTP id h17so2438035pgb.3 for ; Fri, 20 Sep 2019 21:33:04 -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=N9p66J3CyRGSggPL0jEHpJ6N3kmg+tOoU7mSBRlNkcw=; b=xpIFQJxm3uzfSkSTraENbc8HtBffhVBVKmU/3hlMOLXFXvjpL6AzMM+qNg189A2EeY fdtVTTt8TLNtwvaSJ1/AI5r6bObjANZEVNdC4TgptegNcjnmu8Zm57eTJF168rxlxWmf AST4BhMwUUJPcU8SHg3k3AcSkBYU1jjTEwepy/ylmICHZSvvqUQq00qaYHR7jGafC2YP muTWddnz9Vf3T/nZCln6ChE26s5D7tFvPhGN+ItauFVjI9gDT6IjAnNyMkSNjHUCsOCw tsfrWWTCtyv0BayoYkNMhuPU3OJxzRYv2GwW4s1F+akwwBI0JAqKJDidRC4cuCXHFW3s Al6g== 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=N9p66J3CyRGSggPL0jEHpJ6N3kmg+tOoU7mSBRlNkcw=; b=YkRdA272t9JxToo0Kc4voe9qdGS9NfS2f4sA1pug/bs2Wgun7FUWBWtzZ4HC4QnE1D 3rnRQy+UQtflicfZm8Vd1mf6x4MbUsaK0VsaCldHN5lYcuDL7nWQDWz8kcL5MJS6obJy +5gO7p+zosvgARfeJGv2/FlAEFkJF0lqjmWDrQlij/CyytCUnSAnQ2ti/PFlQS3RWBIj ktY/kHBRrEuzPrdJAVbJViU5k3KkBqYxzVdSGlP2HgvsbAibfg7jBe8YP+AkyryZgNfz N55Odb9FPBy0Ejmq84GzS6bFPnncQmTh+I0IPJgSo1Nh+dtTjk/y0X/kF6tPOwNqoDkH 1yrA== X-Gm-Message-State: APjAAAXaDu1uN655VzDUow0TUJJmNqkPk7MqYZQBKP2UT5H5HmfvhOXa DQ+Ywy6ah5+Kwa4FtdpBVjzNtmY9Wi4= X-Received: by 2002:a63:1521:: with SMTP id v33mr18854563pgl.9.1569040382707; Fri, 20 Sep 2019 21:33:02 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 21:33:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/7] target/alpha: Fix SWCR_MAP_UMZ Date: Fri, 20 Sep 2019 21:32:51 -0700 Message-Id: <20190921043256.4575-3-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::544 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" 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 --- target/alpha/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Alex Bennée diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 6c1703682e..10602fb339 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