From patchwork Fri Nov 19 16:04:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519256 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp2732899imj; Fri, 19 Nov 2021 08:17:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlDaEyoh/1VAUqPl3zh6C0UcM5Ot7EpjsuqqYNn9O4DlLvitdJHguWgtpoHM20OiJN841A X-Received: by 2002:a05:600c:3788:: with SMTP id o8mr1003556wmr.82.1637338655125; Fri, 19 Nov 2021 08:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637338655; cv=none; d=google.com; s=arc-20160816; b=me0oEiQ/7TCWUUKDMDgICXRvU09ZjstWxfFHNZPeW5KOSZbcyx/fMGf04m4J9KKPn0 IaCtI6o6rGr4CvYIyQSHY5YQqQO3srnBS4e7kPrKUR8xGGTWa7klcHNmw2OAmiBHEEq2 +PjZqDuX06fW4uqI46SPHyNkNJZvbfhhvjnfZjyA/LpGu28NbKkPd/omhhWQtLODkBDh qJU9G+s/zP8Qpvof826ipKb7W7PXr/Bpml+ZDke46QgKAc80GDhXI8/ULDqUwrkT1AJb vUhUl1/H/wX/qsrVdyypIDJ8TGtUpGu5d9B9/hsH4C5qYRzldLqAKP0BWQEECHFIqTMn f+oA== 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=V3QFXn/rxzfGJ1Zl+l855GTQvmJfR4mGMCcIgpO2hOs=; b=BWazMVvzODx0N+Xt37c+2b2CENSyfUtXr8aIkrY+AlH9IXkHEa90n6VqI7urMzid5l reeJUXPOZqdNgbF+WrvHw/WcJLaAdFnuOU3zRa2Nqx9RyGwvDvUsBcrn2f/cF5U1J5ya nnrU7xtQYiTDtN+ZUhqx2teARyXEUIgID6iRRqjYohmpqdJnOlQcSZsRXCOqs/NFoLjR GSOmJ2x0kqinvy3zj0grTXz7NZPgI7HL6MGVZjSuip5FixlO5tYTvMQdVSmjbVXWJHd7 k1K2sMyZ5W//Nxw0oJffDdJALJ5OTJ0CDDp0MkFuXNV8mi4rKaBJdWlIyMtvjBDUHz8N oDYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bR1McaU3; 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 l187si320402wml.51.2021.11.19.08.17.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Nov 2021 08:17:35 -0800 (PST) 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=bR1McaU3; 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]:53026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo6Zy-0000ON-6W for patch@linaro.org; Fri, 19 Nov 2021 11:17:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo6OZ-0005T8-L5 for qemu-devel@nongnu.org; Fri, 19 Nov 2021 11:05:48 -0500 Received: from [2a00:1450:4864:20::433] (port=35602 helo=mail-wr1-x433.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mo6OX-0004Gr-QN for qemu-devel@nongnu.org; Fri, 19 Nov 2021 11:05:46 -0500 Received: by mail-wr1-x433.google.com with SMTP id i5so19027462wrb.2 for ; Fri, 19 Nov 2021 08:05:45 -0800 (PST) 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=V3QFXn/rxzfGJ1Zl+l855GTQvmJfR4mGMCcIgpO2hOs=; b=bR1McaU3br+AX2biMEYG/LnOlzlNb4QXht9gfQDvOAPPlpnYZXoxZCcH9zDYPffR/4 hvVs7YOukeErFef9lN12+jY2CPxOBIzH9qTUAdQGM53TT1ZseszmZ0uV4zvqpqDYrzvF PR9rukwmrFQdrEi8GEHloZe9iePQKA/5FgHDH8XH2cHJjx76lop9lwqOkcvopM+ahZwb 1WPyGaWVumqQGxhc5Ej3mKf1ze6J8RqBCDV+bp7c3Ja2rpVg1YvT7vBA2i1rnD2NCOkk wjHa+ifGwOG5MATN9aZrRdKRVMj0djZCiNxYsiGyOgRYFIla8G6HvODJjD6bDDg3twxl bjsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V3QFXn/rxzfGJ1Zl+l855GTQvmJfR4mGMCcIgpO2hOs=; b=ZIV82vrYXBjXcEC1yGUPNQHe+ZLeBuJXdf+KDuC2nenU3G1vdP1CqZCWrXqyHY7Pqd TN7rBvuEObK1+srkyOmIyDlsw6zRc2dj8VCBZac7T05uqMP1xo+DTHUitI00z0rkgpMC 2YfjmDSmzoZmR3n0PW/CFiAkZ4bnXb271FEj7EBh/RDLbiqRei1Zs24VNpYQPa7yv2Qf ptlK3x8T+BCGcuU1xL6p49AzUKDAB7+81z7ltDCFV188uSLw4o4YZXgb1s4vE7UPUGFP CoJoWR+6utZ2FRymu+FHixwNoi0XmMvJI9NtkUzov2KoJPp8AH7jxvMBDs9uiYydTSnS IvBQ== X-Gm-Message-State: AOAM531F+7mxwTCjCsuyjkpgAijOKTjz48vl+YebUdA/l+RBO2L8kX0v /N3jZcq76so9W6LZfclAE+13BH6uDkloXbu83gY= X-Received: by 2002:a5d:69c5:: with SMTP id s5mr8431190wrw.283.1637337944483; Fri, 19 Nov 2021 08:05:44 -0800 (PST) Received: from localhost.localdomain (165.red-37-158-79.dynamicip.rima-tde.net. [37.158.79.165]) by smtp.gmail.com with ESMTPSA id q84sm14044877wme.3.2021.11.19.08.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 08:05:44 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 15/35] target/ppc: Use FloatRoundMode in do_fri Date: Fri, 19 Nov 2021 17:04:42 +0100 Message-Id: <20211119160502.17432-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211119160502.17432-1-richard.henderson@linaro.org> References: <20211119160502.17432-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::433 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, alex.bennee@linaro.org, clg@kaod.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is the proper type for the enumeration. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/ppc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 9439dd7f21..535002741a 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -594,7 +594,7 @@ FPU_FCFI(fcfidu, uint64_to_float64, 0) FPU_FCFI(fcfidus, uint64_to_float32, 1) static uint64_t do_fri(CPUPPCState *env, uint64_t arg, - int rounding_mode) + FloatRoundMode rounding_mode) { CPU_DoubleU farg; FloatRoundMode old_rounding_mode = get_float_rounding_mode(&env->fp_status);