Message ID | 20241202131347.498124-1-peter.maydell@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4cd0:0:b0:385:e875:8a9e with SMTP id c16csp1195520wrt; Mon, 2 Dec 2024 05:14:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVliOmvwopLb4FEzm024LBt80zyFX3dqTvTOmp/x9NEW8QTlkb0/z/KrS4ROfIU3Dx+ep7cwA==@linaro.org X-Google-Smtp-Source: AGHT+IELq7XRwfKqvaG6+Tt++qdQPfRz+00uiAii++UBxWEq4nN56av5or1hutg4RIuJGEGRfRzZ X-Received: by 2002:a05:6358:d38c:b0:1ca:ae0d:4675 with SMTP id e5c5f4694b2df-1cab1609d91mr750250555d.15.1733145294391; Mon, 02 Dec 2024 05:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733145294; cv=none; d=google.com; s=arc-20240605; b=d0K084Is82T5814EY9mpuAIhl0GFOuIJXE9b7Lk68nFSLRI9oNeGB/Pn2NRMg0pRyJ JKeML1MJvYY3tow/cUHohiXO9MVjuMAYLTQDrfva0E6sa2p27zp4JcmtPeEcgPA1s/E+ GPJ0NXG5FaaByskqNAyv8rPuRcrepBTOtKVgYLTJRGIbqTrm1ILHvCkc7FUAeYMBIH5C kAkMR/riSwe8WxKkysN0c19f2eP+D7ulkI8w2NaNKJHIeSwWKUXK/T8/hyUc6eD2JLtV h6pm6FQYTGbvti2mcRLjekbg2uACukji/DIPMwlHGJKWk9u2I8APFuIpn87LmvD1L5dg QS8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=trg+V3VWcwq8s0j7XDrYNrEYigU3XoxkcN81p0HkxKU=; fh=QgE9QYJDVj//6C0QJWGeEM+qaFVaxwMel1ZWqkEy6K0=; b=JW9YVM4AEcsCHwnr9eF9AtLKBUKt+btd0nxiKdGBV9ng+h0nNU20/UMnO/revWFOwt 5v5c9zgfMJOOFOEQkGm8nU3ZDEego+pgwFOCyavqaNb7iEHPjv2PQsfXsba2SDrM1xlx 1tMpHY6B9B7UhtY6Kt3CMc4NMkiYCnveP8EC3Wrz/KJX0nHtcVO7Vbunzai/Mu0sQ8cs Y2H5A2ubr1C5HVEeyhVFkwcF2vy7FTIwYQIJljAXxpgXUt3bmmLoHb7BCsrX600N1kTT zvmpx+etLBaMg7SY3RDEwNQpR3P34YqiRSgu/o/bk6Zu6o2CttCeDnTzuTamazv/3YKU g3hA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=erB9HsgN; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a1e0cc1a2514c-85b82aee4cdsi4121467241.76.2024.12.02.05.14.54 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2024 05:14:54 -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=pass header.i=@linaro.org header.s=google header.b=erB9HsgN; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tI6FX-0001k2-16; Mon, 02 Dec 2024 08:14:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1tI6FP-0001jK-QK for qemu-devel@nongnu.org; Mon, 02 Dec 2024 08:13:56 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1tI6FM-00035Z-AR for qemu-devel@nongnu.org; Mon, 02 Dec 2024 08:13:55 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-434ab938e37so26669725e9.0 for <qemu-devel@nongnu.org>; Mon, 02 Dec 2024 05:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733145230; x=1733750030; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=trg+V3VWcwq8s0j7XDrYNrEYigU3XoxkcN81p0HkxKU=; b=erB9HsgNSGFIF+pjTbdSRZIzFrXVbkjSxmxnE8apvMjww8cKiOMsnUAxNicPRzvhBZ TG4cjVwS+NcTEFp4GKbifvwk/zE/4vg47ZinFdaYVn1r63bL4w0y4ClMOXuhv4TdbPnT 8M0EKximLjx7eNbOLM+y/rUFccMlfrYGHdO1LrqcuLLVdLNYG21YzEwQXjUCJRXrajv+ v85M0dUZ71GnsOMjkL5zZkrwZLMKTRagnqJD9mmhddgpNxAFfauTXsldMbmKQgSpl5Yv OOXBbr1uBcIMoN7cPHjUh9tmja06c3St6i0uBToCDH/WL20/HHa/ZjcBe7Dz9DFP9GN9 4AlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733145230; x=1733750030; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=trg+V3VWcwq8s0j7XDrYNrEYigU3XoxkcN81p0HkxKU=; b=SyeeacS/wi6ueSP1ulMmj5ZIsC2R5foBzlbMzIheIOb4VSrJSwMETCCPoChEVNlG8Y dDpsJIgsVT5iWUou/Qz1V8+HulxLf4i3/vLVN+guEdxAtQWGa3+Bdj0Ty2xCq01J+o6r QKxMjYgL8pKdURbxI5ISrKLphsuUxuogYs2yOn0ihlXsR370jlgRU+jcN8SpOq2Ejnzi +hj1ipk/HDgQTBxMW6uZlK5M9/D3gfhmIFXCIN7DN5GO95/ic8FMML665xi8x3wYV0Ss jlm+7opqMyyUlEeEniuv5VTsr+kOhMNswJnL/anMlN5dTI+LGq2wUZm/bq+iSH0RwCs3 xGJg== X-Gm-Message-State: AOJu0Yz2aHbFVpXImGUIliKm4DldxNCYdNz2VORoy3+YrfbR2uZJSI32 sXEod5Q1WduzT1OdUmMaHGT0yz2C5ZyNpAcZGATvhp/5fnDABGeYgo1PIwNzcNHTr938WtJqyvu d X-Gm-Gg: ASbGncs6TpIETMOtqBOgd5rsaItnrmM7qSP3nCUtLbeE9zWtgf4AzcCEgeafL888/wX Zl1gdPcIU/DfTTK56EsfHUTzugv0Lv1rvGS7pAkWEuSavaRw9EOjFdA182tefcy+/3H3EmKTwes 7FAc8vAWp0cHGOGAP9w7tKQGCtwkxRqzbVYd2ITwrOQJbIykzTUgMSUGeFfurlyHLyEZH8vDKaD g7LatE0mJwqXwqAcjEQ4Ta+A965YjaeaiDDJFt4B7R6dsZ6tx8/uNs= X-Received: by 2002:a05:600c:1d20:b0:434:9934:575 with SMTP id 5b1f17b1804b1-434a9dd035cmr231441105e9.16.1733145229761; Mon, 02 Dec 2024 05:13:49 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385dea1e4ebsm10160157f8f.1.2024.12.02.05.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 05:13:49 -0800 (PST) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Song Gao <gaosong@loongson.cn>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Aleksandar Rikalo <arikalo@gmail.com>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Thomas Huth <thuth@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH v2 for-10.0 00/54] fpu: Remove pickNaNMulAdd, default-NaN ifdefs Date: Mon, 2 Dec 2024 13:12:53 +0000 Message-Id: <20241202131347.498124-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x331.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
fpu: Remove pickNaNMulAdd, default-NaN ifdefs
|
expand
|
On 12/2/24 07:12, Peter Maydell wrote: > (Apologies for this patchset being both big and having a wide CC list; > the good news is that this is the last lot of fpu ifdef cleanup that > needs to touch all the targets.) > > This patchset does the same thing we already did for pickNaN() to > pickNaNMulAdd() -- it replaces the compile-time ifdef ladder that > selected target-specific NaN propagation behaviour with checking some > runtime selectable settings in the float_status. The motivation is: > * this will let us have multiple targets in one QEMU binary > * the Arm FEAT_AFP architectural feature includes letting > the guest select a NaN propagation rule at runtime > This is patches 1-26 (which were in the v1 of this series). > > It then does a similar thing for making targets select the default > NaN value at runtime rather than relying on a compile-time ifdef. > This is patches 34-54, which are new in v2. Update needed for is_ebf in target/arm/tcg/vec_helper.c. I think the best choice is to reverse the copy and test, e.g. *statusp = env->vfp.fp_status; set_default_nan_mode(true, statusp); if (ebf) { /* EBF=1 needs to do a step with round-to-odd semantics */ *oddstatusp = *statusp; set_float_rounding_mode(float_round_to_odd, oddstatusp); } else { set_flush_to_zero(true, statusp); set_flush_inputs_to_zero(true, statusp); set_float_rounding_mode(float_round_to_odd_inf, statusp); } r~