From patchwork Mon Feb 24 11:15:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 867910 Delivered-To: patch@linaro.org Received: by 2002:a5d:47cf:0:b0:38f:210b:807b with SMTP id o15csp1494679wrc; Mon, 24 Feb 2025 03:18:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVUDP8edUW3ucz3AoUrk14MRLLJjDCcxo8lrdy7jU6bMj1dgG5YQKYE1u9CzN6oxSGr9ED/Ww==@linaro.org X-Google-Smtp-Source: AGHT+IETDffKIykbzJx6sZCoJqgnQkhFAPZgEoCb5KxNQf6JBEeCLl9OaDSbLg19NkFhXhU14za5 X-Received: by 2002:a05:622a:1a0e:b0:471:ef69:ad8f with SMTP id d75a77b69052e-4722491e984mr193202651cf.43.1740395919787; Mon, 24 Feb 2025 03:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740395919; cv=none; d=google.com; s=arc-20240605; b=Wc8iQnS8aqJClDy69NGIVZcW4/M7ABWyWhpw1KsYXaNKv5O16ZfgTccwvsTWLzz/uo 8URvCNaBvNMXemkzJKcHBTSC8+ri0XS2ne+A9+1ogaIMMtAYb1j8eFsPzTwz+MlWWzst T6u17EkhuQSWngENwK3z4WuXHsulkWSLi6Rgr8alNLmve8CJLqG6iqFYgyX/Y9TOOXsy X1kebH0JyAC+MdF7WnprSVgiG83q9e2SgSXHj+2wujiwctDlCietQGUgcA0pykAN+Myo Cgg0gzvZ+dQny06LujRr8YsyWUQgyAUEX2kpQzL1I7xSDYMRyoh+OJjEk7QIFQ8R9hKi 5iog== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DTW+guxKto4jsRU3T6f5JGrwIUxjIeZwYhIwDRM/nu8=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=P4FNmPOPyYo13m0xBt8EOApzWHtThOs85pcw2Z8+dcFtZW8naVtXNvVirq+s/bQJ2k UXwWaWTSnaMjch8Tv4c6Vf/gGiso0kFM5Deh9wuMkV4lrfx198PrrYeA1YUn8XHBW31E Uho69iNfkYpLygNteYtFgQbavOov8ctl3RseKds6QyfiFvYV2YfiSmumLb7jw0cEBLz2 o5Acf6GxGlhUyBE3gna1VanRlDgC+fx0FkUTPGJpPTOuGC+vw7r65Y5gwZO3l+w81xkJ HzcVyB51idCj7QEDek2Kx6skIYh9n6Be7yo2Vk858MIDBVzHzVYrBZx++9l6KdTu8x4x RB5Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K5Hi0qCF; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-471ff2726a8si116291611cf.575.2025.02.24.03.18.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Feb 2025 03:18:39 -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=K5Hi0qCF; 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 ) id 1tmWRP-0005rF-Tv; Mon, 24 Feb 2025 06:16:03 -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 ) id 1tmWR5-0005nj-EK for qemu-devel@nongnu.org; Mon, 24 Feb 2025 06:15:57 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tmWR2-00019J-74 for qemu-devel@nongnu.org; Mon, 24 Feb 2025 06:15:41 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-439350f1a0bso24833035e9.0 for ; Mon, 24 Feb 2025 03:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740395737; x=1741000537; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DTW+guxKto4jsRU3T6f5JGrwIUxjIeZwYhIwDRM/nu8=; b=K5Hi0qCFYPHAdtAcDE1CyPNiaWaTGOsspUfGckBcH3EPKW6lHJiOaE+WgXmaLOixL1 NwvUZKt9keWtwTzEjOsln/Ci4wyy4qaMm7C42EUfq7j3ms5MqS8h7kZ+4EPeN4aGturx 6Is70NOY2b3LkCRjyrCa+uhTK0+ragZp5/xTUADV37pTzsNIOG+n980wb9uv/dguQKeA 1i5Uh+gCfo+x/29/lqXwj+JmnrHZ8VjsDFe8YCnxFTnNQ+NP5wfxd7jxbVrAXgysvT3e O5yLyP7hbGyO+Ee56DbhR1d8YwYJHAnwWjrQHMMSS1xETnehwbgvnWFqcNZXy6NcVovt zcoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740395737; x=1741000537; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DTW+guxKto4jsRU3T6f5JGrwIUxjIeZwYhIwDRM/nu8=; b=dtzU+cjHIUBTC7yeGpwTOybqk/J+nvxxkT4OYKpWVZT6uHoLOkA5v5dSVYdFb00A5g Rt+vRGj2EV6S6HaISVqiKSWuy+2SWcnlv/Gl4OaE+6o031khLIc6keTmknBkznkgmeic eFS7s1OzqcuJJR98ogYqVM7LlIwvRBY610+ZUVXdigVa5PgzjXiccvZAiJpqMy4m4ESS aRIpGscnoFTwrBWIJomrVRN/eLwD26AuRrQUp+T7kSEuIUdLi3IJNGVV5bg519zBiXas WCFaAy8Ft4oz3bvs351tT8R3UNrnHf/WzNhvp7MP82jP5BQgMUv5wxne6hlh1K7Iez8r oe2Q== X-Gm-Message-State: AOJu0YxNnBebY5OV3MYMj4CXUTLcaipl6taSgY/NfMgHTHu+A99kw7/y muemy6wKDZt/JirHmJ6F+maRTyMAjPtbIvXZq48MLQLlxEJ81tTSX8IBtGn2pi7MmYz3lI0UKbP x X-Gm-Gg: ASbGncubJoAsPtSLkeCpJG81nG3KzBzdxBGYtdzT2kUjOW76DMfX+uBrmycSmbNz5c8 lqe3vpZJUCg9bdYAXuBBXQQopt7huM2j2+KHJK6hPapJO3DfHfw55Y2AIYoG72GG0+B5HZWzKdE gnQmUv0SQYzSK9u9U5gNKPCL3uli3RxQw6e3wEJKUGc5GoiE3cNXMw94MMxXFpE/4U408Oqp/Sg pv4aet0UHz8GkCqFolFlwH08Ow0kD1hkPfpvXyJWAi+40JsGsVRvTiJI7P8/eeyp4/ZopSFwkBW Ufvl5/vTrd/PbMSJkrjgNZjFRIpl2bMf X-Received: by 2002:a05:600c:1d0b:b0:439:98fd:a4b6 with SMTP id 5b1f17b1804b1-439ae33cb6bmr105188825e9.15.1740395737687; Mon, 24 Feb 2025 03:15:37 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b037214asm101447705e9.38.2025.02.24.03.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 03:15:36 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH v2 09/12] fpu: Always decide no_signaling_nans() at runtime Date: Mon, 24 Feb 2025 11:15:21 +0000 Message-ID: <20250224111524.1101196-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250224111524.1101196-1-peter.maydell@linaro.org> References: <20250224111524.1101196-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x330.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Currently we have a compile-time shortcut where we return false from no_signaling_nans() on everything except Xtensa, because we know that's the only target that might ever set status->no_signaling_nans. Remove the ifdef, so we always look at the status flag; this has no behavioural change, but will be necessary if we want to build softfloat once for all targets. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20250217125055.160887-8-peter.maydell@linaro.org --- fpu/softfloat-specialize.c.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc index 8327f727861..a2c6afad5da 100644 --- a/fpu/softfloat-specialize.c.inc +++ b/fpu/softfloat-specialize.c.inc @@ -85,11 +85,7 @@ this code that are retained. */ static inline bool no_signaling_nans(float_status *status) { -#if defined(TARGET_XTENSA) return status->no_signaling_nans; -#else - return false; -#endif } /* Define how the architecture discriminates signaling NaNs.