From patchwork Thu May 27 04:14:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 448815 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp158127jac; Wed, 26 May 2021 21:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhbKiEg9+WOqqkH/z8E7o72Kk8jfWC58b05Uds42PER14cHw4JZag6snrzf2VWbXjdjwTd X-Received: by 2002:a25:80d0:: with SMTP id c16mr2080993ybm.63.1622088881018; Wed, 26 May 2021 21:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622088881; cv=none; d=google.com; s=arc-20160816; b=v/MSgFe85KyyN8mvnxJHg0r52N12WPpKWXFGCoLTKV7t5HXUYQyohDARUfELW/6VAu EEOT/AMLxy2EplBy6PcfUjP6JH8gLlSqz5sDvonnwbLsaHzKECNgXIdFRRD5Yjxav6D9 e1CMxsmQbbgBLmw79ssd76tyhWHo5koK4+gQpbkTrREOTi2XTlQ/EzOwzLt8UbIku6Hw 2NtAkFJVnYMsDWFE5727t/q/zzRv7s1yphXee3/AaE2nXmF6c4LOJpiEiL+SBWGFRl+u iZXOafEl776by+mtyWWJzMaYW2vhDqiG0oi1VpaHFLl9NkX8cazZ9YOGT9lQC2s/PAOS wcDw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UoxBYLGz1RPfPHU5SsrpnEXE2PmprFjabmvNHor6v/o=; b=z68CiIfxqSgH3zqyjudM6aDySTKpMGC4hpH2fplNrWYV0RI/TrZZNkZYQXbnOGpQAc Wrgb4Szob6pto0QM9suDPyaEA1iHanGltkLl2w0DHnrnHJJLsd0K6PcQW8R2gW7iVTtl U9/ZuCxor6wYSSaFghfP+x8qdydM/1RyfVd4xADTd2wwoQwuQDKQZ5jxvVxEhN90T1Qs ScLxOCFj4tlbfwMlOfEjpiohAIjqOdrwpmmNhf4OoJLtXh032StlPg8uoiWKtDHZqNch zlr6NUNhSMv0BgRFD+aNoaAQlJm4nT2kjLTW3Faqh8+Bt4571zjc1t3+ocawkMosurhd cIkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OSsljFwq; 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=fail (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 x8si826033ybt.86.2021.05.26.21.14.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 May 2021 21:14:41 -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=fail header.i=@linaro.org header.s=google header.b=OSsljFwq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm7Ps-0001ad-79 for patch@linaro.org; Thu, 27 May 2021 00:14:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm7PR-0001Z1-C5 for qemu-devel@nongnu.org; Thu, 27 May 2021 00:14:14 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:44586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm7PP-0007DF-Sz for qemu-devel@nongnu.org; Thu, 27 May 2021 00:14:13 -0400 Received: by mail-pg1-x52e.google.com with SMTP id 29so2710284pgu.11 for ; Wed, 26 May 2021 21:14:11 -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=UoxBYLGz1RPfPHU5SsrpnEXE2PmprFjabmvNHor6v/o=; b=OSsljFwqnG6yAYxRCl+xTx4bq6IqteVk7ygm0Ld1zhlngHNqUzq7GBVU9WbvyAUw3W e4XPzYGFEDlcTMz/0KvEVdRq20/AD6wt+SUUAcwt2H2WUl/o3+e7Cj+uAlKLGtL9FlII iOFZzuemVT78aExW+5LYpSBtKrC/iCFgkCO1bIDgE1/u2iH+0K8ICC154ycL/kFI0uE8 pz75Ud6NNAxCQRQJtGKoCkUbQ/Bu2j8TICUYcqxLsLbQTY8lhzrEDRjS54Rmdp/BJjR+ lTdNN0WC5JBjxN3CSDib7FSv0C8m/W5VQYpOfmDG56oikNmjRbDYRy8pMl1EfRz2XSXa +Ybw== 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=UoxBYLGz1RPfPHU5SsrpnEXE2PmprFjabmvNHor6v/o=; b=nITj/dgB0LhcYrbxgaY9FrDJsMm4cfqMqNU2dsUuw8b+MvAvsSR7m7KM/jl3pHQ5Fv 7LBXAu5EBGFsR9FYmWnjBUEBXMkPd9FUGZg3q+075oGPnZ09LQIMYIsBqD3iWPtEgEOn h4nK51imbURDagm/b+DG3em5mCj+FvbWC1GSs3bl+Z+i9RJkhiMtro3qrfdxqOC73NEI dwDsNBGUVG3KVeMHhZl4SFHTW4Y/meZ11cpK13yzClput32y+0NShapOedL9+Lb9vhB1 wpxzq+cB+dE41EHE3pFtGSYUaQsZyjUmjrriqpE5JuFFJxqkT5NHF/9wOYSmgglB7fA2 yWUQ== X-Gm-Message-State: AOAM530c1SOX3YHA/kacdbM7SkUYYmPpbUj1MVMWLCeltbBDYpbQ4Li0 DaEuRjgHC5nOclP/JBvraNCu4eyWVW2ZOQ== X-Received: by 2002:a62:5846:0:b029:2e8:fde9:5c6d with SMTP id m67-20020a6258460000b02902e8fde95c6dmr1822074pfb.56.1622088850663; Wed, 26 May 2021 21:14:10 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id s1sm605959pfc.6.2021.05.26.21.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 21:14:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 07/11] target/rx: Use FloatRoundMode in helper_set_fpsw Date: Wed, 26 May 2021 21:14:01 -0700 Message-Id: <20210527041405.391567-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210527041405.391567-1-richard.henderson@linaro.org> References: <20210527041405.391567-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, mmorrell@tachyum.com, =?utf-8?q?Philippe_Mathi?= =?utf-8?b?ZXUtRGF1ZMOp?= , Yoshinori Sato Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Use the proper type for the roundmode array. Cc: Philippe Mathieu-Daudé Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/rx/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index 2139def3b2..b1772e9538 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -120,7 +120,7 @@ static void update_fpsw(CPURXState *env, float32 ret, uintptr_t retaddr) void helper_set_fpsw(CPURXState *env, uint32_t val) { - static const int roundmode[] = { + static const FloatRoundMode roundmode[] = { float_round_nearest_even, float_round_to_zero, float_round_up,