From patchwork Sat Sep 21 04:32:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174177 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp250882ill; Fri, 20 Sep 2019 21:38:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLgrxDhwpf4Ju8lstytPzx09kRaqAn0043xA/s2LCABxqpQ2DJDkCJL+/4GL1Yqwk4Y0oY X-Received: by 2002:a17:906:fc2:: with SMTP id c2mr5921216ejk.261.1569040690669; Fri, 20 Sep 2019 21:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569040690; cv=none; d=google.com; s=arc-20160816; b=08zrMJ7X4Sux9oMGPCFDp0TOIr50pQnV0+ZW2ZB4b73ZJl23qRMw49JHdfMdXVbeSW 1nnQpvIb7eHe4JMtQaYMQHCVV8YuB5HX4LUY8NYlD1CwZRXGy1hzw9FkFh2HIf2JLy5C XkT74heiTFMUI39Zjaj4lMPrmVj1GMwb5j1dhYhRz61vg8FcRLaAjB52Ml5i9yuxH9KK 4OXuvYyrR0zB6wDQNpJPzI+eDIou0U0a0p3N17xH09QwzuQiQ80mtLy0xslevbdngMqe bcCkR36sxjLwJ/QjCfDUiBi/a0B1L6839uBoKJEhlOLq+BEMpIgfQ4hhja1JqNxLMIHb U93g== 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=8832rs/gjYJtK2KCkPzbjErZga7EWVI26gkEzFEjWFQ=; b=L3hV/o6bBZoO6wm7M5e9FHhC7KCntfRa+pZ9GEpJKesjlja649D50JKvQXSDYGAkx+ 0sf++pnMC9jwkR/uAvAAGuorwqZhRRZjIbMNUZG9+OejVOz3TP01RNtrfPKfz5tZQbvA R61iJM8xPIRb+mJoACTG4x+eetEr6pkx6UcN6EKpuA5i77Gdi3hHPMRR7Wilv76GIB22 /uuDotTvkVjtT/VKFN55bOjsUgssGIS+nLu8VTfCfiZMSOa1HeEhYlH7hQieUosG90Bo 0Jo4NhICdgmegl00MuwcVnbM21FlPe/PtjuKVZjlCY7/wchDdWXtzw2K80XvFqO0wZGq hZGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PO0GiQse; 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 i40si2619329eda.225.2019.09.20.21.38.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Sep 2019 21:38:10 -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=PO0GiQse; 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]:38694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX9t-0007Nq-2n for patch@linaro.org; Sat, 21 Sep 2019 00:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40660) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBX5K-0003RY-BL 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-0006Y3-8Q for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:25 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:47014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBX5E-0006QK-HN for qemu-devel@nongnu.org; Sat, 21 Sep 2019 00:33:20 -0400 Received: by mail-pf1-x444.google.com with SMTP id q5so5852658pfg.13 for ; Fri, 20 Sep 2019 21:33:07 -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=8832rs/gjYJtK2KCkPzbjErZga7EWVI26gkEzFEjWFQ=; b=PO0GiQse2Tt2buMzBBQF17lZ2BDMqCf8+qVTGxSzCAQzsfwfnbeZvlxMEzupWX6wLH 5j1MdnUOo5gN83hnqC8x1HzuoI5Z4GUpQTb/4RLZ/devOLCueelWgLKzGlt8RRiuMLWw sI0fbHFdgZVUIB3KdZSys4UamvIKkcqXiQ5GwCNeC6b+3T9t7IIjFC9hcVn2j3PauHs8 lKCBtyemq+6SX1W0ao6sx5uzHbzkJ8lgf4XTGbugaW/Z/x2AGoK+4iaPbEj1mz0/mQlZ R25hB3gjt3iSDkBzd37NQjjP1/mBdX6goqqU73oYR/DWVAjLYcEK+DmiBmsaPqowPMsi zV8g== 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=8832rs/gjYJtK2KCkPzbjErZga7EWVI26gkEzFEjWFQ=; b=tVuv9+jTzqDyo7UxB13nPk+Z6JRpdphZt/agZSwyAGaJF8E2OidnOIc+eeHFbtzeqZ eEVpX7pBqC1arzTG0cIDe4a6gxaxcXUklloFC7XSSwEUD62jivProMB5KywWnm1WKswq dzT4rRpFOnrin6Pdel43XPnZwV2ZYJ+9WErP1ckho2WG9YZB1lxjtDsgXHVdoDCd7p0q 1bgrTH/PeswywmjygkYirTOls5KPZyMKWIm6elR2ibqsp95O5O6SPAV7meY3TaF7wmjg c89e27StsPTSxWQzt8V0vzzV9bwumbZceZAGx8VH/P2Zo0ccG18btEC57jCLazghfn5L BHBg== X-Gm-Message-State: APjAAAWE7Crtgu/bP7EbYGy32dOz034GZlytCUmHcu4SiO5JJLNQv1cK URI9LxTgOTBOO51lsr9sFY0ZJUterVU= X-Received: by 2002:a63:1f1f:: with SMTP id f31mr18413877pgf.353.1569040385641; Fri, 20 Sep 2019 21:33:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 21:33:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 4/7] target/alpha: Handle SWCR_MAP_DMZ earlier Date: Fri, 20 Sep 2019 21:32:53 -0700 Message-Id: <20190921043256.4575-5-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::444 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" Since we're converting the swcr to fpcr format for exceptions, it's trivial to add FPCR_DNZ to the set of fpcr bits overriden. No functional change. Signed-off-by: Richard Henderson --- target/alpha/helper.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.17.1 diff --git a/target/alpha/helper.c b/target/alpha/helper.c index e21c488aa3..2f959c65ef 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -57,7 +57,7 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t val) * the software exception mask. */ uint32_t soft_fpcr = alpha_ieee_swcr_to_fpcr(env->swcr) >> 32; - fpcr |= soft_fpcr & FPCR_STATUS_MASK; + fpcr |= soft_fpcr & (FPCR_STATUS_MASK | FPCR_DNZ); #endif t |= CONVERT_BIT(fpcr, FPCR_INED, FPCR_INE); @@ -73,9 +73,6 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t val) env->fpcr_flush_to_zero = (fpcr & FPCR_UNFD) && (fpcr & FPCR_UNDZ); env->fp_status.flush_inputs_to_zero = (fpcr & FPCR_DNZ) != 0; #ifdef CONFIG_USER_ONLY - if (env->swcr & SWCR_MAP_DMZ) { - env->fp_status.flush_inputs_to_zero = 1; - } if (env->swcr & SWCR_MAP_UMZ) { env->fpcr_flush_to_zero = 1; }