From patchwork Wed Sep 28 17:27:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 4414 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8481C23EFA for ; Wed, 28 Sep 2011 17:27:38 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 79D9FA186C9 for ; Wed, 28 Sep 2011 17:27:38 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so1248729fxe.11 for ; Wed, 28 Sep 2011 10:27:38 -0700 (PDT) Received: by 10.223.45.140 with SMTP id e12mr7720590faf.27.1317230858379; Wed, 28 Sep 2011 10:27:38 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.234 with SMTP id f10cs121744laf; Wed, 28 Sep 2011 10:27:37 -0700 (PDT) Received: by 10.150.61.8 with SMTP id j8mr9383317yba.27.1317230856559; Wed, 28 Sep 2011 10:27:36 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id v16si1468614ybm.27.2011.09.28.10.27.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 10:27:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1R8xuv-0006VD-CT; Wed, 28 Sep 2011 18:27:33 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 1/5] softfloat: Reinstate accidentally disabled target-specific NaN handling Date: Wed, 28 Sep 2011 18:27:29 +0100 Message-Id: <1317230853-24970-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1317230853-24970-1-git-send-email-peter.maydell@linaro.org> References: <1317230853-24970-1-git-send-email-peter.maydell@linaro.org> Include config.h in softfloat.c, so that the target specific ifdefs in softfloat-specialize.h are evaluated correctly. This was accidentally broken in commit 789ec7ce2 when config-target.h was removed from softfloat.h, and means that most targets will have been returning the wrong results for calculations involving NaNs. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- fpu/softfloat.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 2b20085..3aafa81 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -35,6 +35,11 @@ these four paragraphs for those parts of this code that are retained. =============================================================================*/ +/* softfloat (and in particular the code in softfloat-specialize.h) is + * target-dependent and needs the TARGET_* macros. + */ +#include "config.h" + #include "softfloat.h" /*----------------------------------------------------------------------------