From patchwork Thu Apr 19 13:58:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 10350933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23C4F60231 for ; Thu, 19 Apr 2018 14:44:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1255D289F8 for ; Thu, 19 Apr 2018 14:44:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 035DE28A42; Thu, 19 Apr 2018 14:44:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6DFCA289F8 for ; Thu, 19 Apr 2018 14:44:43 +0000 (UTC) Received: from localhost ([::1]:52139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9Anh-0004Li-VI for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 Apr 2018 10:44:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9ANP-0004fo-Kl for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9ANO-00065G-N5 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:31 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:34578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9ANO-00064l-FL for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:30 -0400 Received: by mail-wr0-x243.google.com with SMTP id d19-v6so14540934wre.1 for ; Thu, 19 Apr 2018 07:17:30 -0700 (PDT) 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; bh=j5kn0bELVxEmf6Rj0VJYC410pqYZPaaLhA5Ob+eKTB8=; b=Qc+EQENMUzgQQWrBv8Zezs9E/FB6cq/OkSYIH0LWidNwIhYHjFCKM4hHpL+A2BobH8 398QZ78tL2GXwpmEzjBbyKiVcGHfLuPRnJVUunN6tlEP1/ssSiRZBtWLmRh7wxfkcYjp uZ9NZwrlFqtTomD1eJWIr1BxYVJh6Pt+6dufk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j5kn0bELVxEmf6Rj0VJYC410pqYZPaaLhA5Ob+eKTB8=; b=FczZryP2ZWCT8OrqVzcNHpHjUv1c8ZZy46CUbszvjAwqwHyF/6SXpRMy+4RcFr2d6z ctB98YithWH56avdFNduPAXtMl6lU4xSYia4Bc64NUjuCKKgk0eM6SgJhKuwd1AMKPj5 qBTln9t1tqcg2eSRU6lRUnT3nsfzFerNrKVQrCPOT4pdURkZPshhU++1HsqwGGUXyXAB JiDuc6qTUhY+G/BPILr5joZAObyduIH5+GgkJL8Wsiv2m1cjMz8bUJCcY01RkdQf+eft Olp6pHk8DcdAKnznwBb17YI+NxYSfz0BljC/8a4enAppaiWxlk2gcAK4plqjxLDXka+W 1/Bw== X-Gm-Message-State: ALQs6tD61CVBr8dcRRptVSNekhpI1U64E6Uc2Mafn2qllAwgR69MOWw5 M9puiDaQuXTOyJfFPoQ5GeLH4w== X-Google-Smtp-Source: AIpwx4+mNjsJnyDDBgQheK3STlNQhCGMpZZ82gkkbWYgyLUXNnmrzf1bFYw7T9kew4BBQcLxddU3qQ== X-Received: by 2002:adf:b594:: with SMTP id c20-v6mr5075296wre.65.1524147449383; Thu, 19 Apr 2018 07:17:29 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y9-v6sm4871641wrg.46.2018.04.19.07.17.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 07:17:25 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 758F03E09A8; Thu, 19 Apr 2018 14:59:04 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 19 Apr 2018 14:58:57 +0100 Message-Id: <20180419135901.30035-40-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-1-alex.bennee@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v2 39/43] softfloat: do not include glib headers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Emilio G. Cota" To ease the cross-compilation of softfloat.o. Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson --- fpu/softfloat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 70e0c40a1c..a2a5d4ea33 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -82,6 +82,7 @@ this code that are retained. /* softfloat (and in particular the code in softfloat-specialize.h) is * target-dependent and needs the TARGET_* macros. */ +#define QEMU_NO_GLIB #include "qemu/osdep.h" #include "qemu/bitops.h" #include "fpu/softfloat.h" @@ -105,6 +106,9 @@ this code that are retained. *----------------------------------------------------------------------------*/ #include "softfloat-specialize.h" +/* glib headers are not included due to QEMU_NO_GLIB */ +#define g_assert_not_reached() assert(false) + /*---------------------------------------------------------------------------- | Returns the fraction bits of the half-precision floating-point value `a'. *----------------------------------------------------------------------------*/