From patchwork Wed Dec 11 16:19:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 849202 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp416751wry; Wed, 11 Dec 2024 08:26:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVr84orA6n5Srb/S84DGa6fY7cISJ3LpWQVcv/2QsF3IFNEVg6CqVjrnQqu2+/4XsdegGUycw==@linaro.org X-Google-Smtp-Source: AGHT+IGzRnv7mmZT/SXvTlyMlMmVpVYlS4w15rE9LkYcsdv3Gflb9Ge1me2f9MaDw68CGomMOqPn X-Received: by 2002:a05:620a:2947:b0:7b6:d0bd:c7e6 with SMTP id af79cd13be357-7b6eb4d600amr536602585a.32.1733934407182; Wed, 11 Dec 2024 08:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733934407; cv=none; d=google.com; s=arc-20240605; b=cUGi5/mUiSVNP5R1nxz5ZP1C7lNPEeuithyMWA/gN5YgaEeRx/Vlqs+8KPXBMUKxHD nYrMKeARIPORdmDFz02BQEfH7Hk3THcAlwOmKw8+K5LV41jVzzs1LdkJPtkU0GjNYxH7 ZMlOnZr2lLfBViXgdkP76Kol9+fK7LkSa9jO3Y6/IWf5kM0CkDtBEGP5PN6Fd/016ShV fzhlpWxXdoAdi3TGAnpJA9XIZUyFI0XTc52lqRylxfNdjIxWsQXN9ZqSBIH/m2Mziv9K T2jXpzUA3u2o9cog4F25UZr7IO8Gd+2IPGg/vXuKUBIfHifQCrTWw4qtKpsl0pDHKi9o QWvw== 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:to:from :dkim-signature; bh=yKsdVA6fFVWyT5C4g+dHlzCsxIZ5/YpoZTGllaXzw58=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=It0oIKE1qCFFVsLLb302JyHSZIVKoUEPf/AszoaQMD/aZJT2iT1t2jepjymxxGXg/R WAE9+juPiy5+oxfrvvjXMQHWh8eTWD/yDmfd46HHBDEpCRXFgi3Nj0TIX8QK6NjPOqRc XX9c9rADcB2QVcId3FSczqsTapcigSjkBMVo0+vJ7A7IbCHP5XhCzZkm83HB13qT9wCh ijyyWcci3RNMdKcqIkyg+E9vXWeEaf/bCNa1pk1zPRD8lbslC2XG0u0HWeV6aqE7qVUN vGeB56p9WOsF6pggbSCzJ9QjFJOEYKGo6JTvPlq7p1J/gCJC1p6c4hxJxUIUMiLfXBwy zxeA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RnNtyQ1K; 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 6a1803df08f44-6d8f91335c5si119083516d6.235.2024.12.11.08.26.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 08:26:47 -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=RnNtyQ1K; 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 1tLPSR-0000iS-41; Wed, 11 Dec 2024 11:21: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 1tLPSP-0000bK-0h for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:21:01 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLPSN-0007nq-MB for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:21:00 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-434f80457a4so5276995e9.0 for ; Wed, 11 Dec 2024 08:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733934058; x=1734538858; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yKsdVA6fFVWyT5C4g+dHlzCsxIZ5/YpoZTGllaXzw58=; b=RnNtyQ1KYdFWvoTPB1fp71ZgEDmuhkgaEWtYtpcU0Npjx4LzphBh9jNvE+2djRcUMe ///GK6IMf2/VcmHIDGz9wW6i2w46aS9bgTaZY8lfHPxX4WVnXBe9IijPHOW09iiMjOrW 4fRq9ZxJpqM5KFgzRLGDYusk9iIlcMWBsSIQKVUqXUp7sB+uAp73AoV9dm/CRK57a//M 9Q8IVahlNINovWyueOILa399yDkJ2FO+4FpRav8hkS2C7ZvDMDjqMtkv4e6s6B5ftj+1 puU64JCbxr9xJ0oo1CunYBwclwY0oQcdGHoFIfwtTSGURnFspcLARSju3NGC/mqTdOhc qvbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934058; x=1734538858; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yKsdVA6fFVWyT5C4g+dHlzCsxIZ5/YpoZTGllaXzw58=; b=hMyRRLsOIeqN8hBPxoQC4WJkd8kXk/Q9ln2kFg0Uou9fM3zkVP/quGuXaYCoultMrB VJiyhYz7CvJFWiTuNCoWILj8WSJPCltEjgYXmhwDgSkwA069ephgQEuOqC8zofvAS8KV T0hjQvxokkZKualZJqkyVQfa+yPkLiyZYmzq1fZcE3bg+M2dUtqRsZbh6hV4GsJf8PtO iz7/FAE2P+r/RMh8AvK7kNYgZEN8p6YyAeAdVd9RAC5XN9fpXnxuZyucn3/rNhtdyeP9 CX33KBjiTuwadmcB9zG/y74K2+6kGcPlkDjuEUD8LAhUDwL961uUXGO7sVbFdcE+Fare N2BQ== X-Gm-Message-State: AOJu0Yw89BgXg/TDCkdIO6DUKthvtpLS9xLF6RdFDyJ7aosboLYcGYVZ 4avLkVgnKdtVxlRNsIn2KCBTMPk2XPbknX2yag0ED7wi1g12FWiZ++pLcsrx3sf1Ybopaj6Ap20 L X-Gm-Gg: ASbGnct4n6yxwB7kZxnC20Xcl8rGVZ7I0KcKD45GxpO3czM8iy7XsCwAhgXUD54HEiz We6+ZGgUTr50dvdpnN3wLqY1wJI9F2im78OwD1qkUPNOS/2mf3c8v5oWNynRKTkJ7vsYLmjRBkf tIcdNzalh0DWJxEVABIM3DK8f88g2a5Enfu8AHwMKMs+T4SG9k9cgRVZ4F1QFxz1jPKLgkcJSzs xn7lxgYrNh2Voa1igthSOecfnzqPP44JMn57/IkAT6qWxpMObvFjl4KGsaP X-Received: by 2002:a7b:cd15:0:b0:434:ea1a:e30c with SMTP id 5b1f17b1804b1-4361c80b03fmr27112725e9.13.1733934058372; Wed, 11 Dec 2024 08:20:58 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434f4dfdcdfsm121460595e9.39.2024.12.11.08.20.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:20:57 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 45/72] target/alpha: Set default NaN pattern explicitly Date: Wed, 11 Dec 2024 16:19:37 +0000 Message-Id: <20241211162004.2795499-46-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241211162004.2795499-1-peter.maydell@linaro.org> References: <20241211162004.2795499-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.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 Set the default NaN pattern explicitly for the alpha target. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20241202131347.498124-40-peter.maydell@linaro.org --- target/alpha/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index 5d75c941f7a..70f67e6fd4e 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -199,6 +199,8 @@ static void alpha_cpu_initfn(Object *obj) * operand in Fa. That is float_2nan_prop_ba. */ set_float_2nan_prop_rule(float_2nan_prop_x87, &env->fp_status); + /* Default NaN: sign bit clear, msb frac bit set */ + set_float_default_nan_pattern(0b01000000, &env->fp_status); #if defined(CONFIG_USER_ONLY) env->flags = ENV_FLAG_PS_USER | ENV_FLAG_FEN; cpu_alpha_store_fpcr(env, (uint64_t)(FPCR_INVD | FPCR_DZED | FPCR_OVFD