From patchwork Mon Jun 14 19:17:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12319635 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C551BC2B9F4 for ; Mon, 14 Jun 2021 19:18:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B01261076 for ; Mon, 14 Jun 2021 19:18:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B01261076 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lss6S-0005HV-H5 for qemu-devel@archiver.kernel.org; Mon, 14 Jun 2021 15:18:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lss5Z-00036g-71 for qemu-devel@nongnu.org; Mon, 14 Jun 2021 15:17:37 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:43832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lss5X-0003ya-Eg for qemu-devel@nongnu.org; Mon, 14 Jun 2021 15:17:36 -0400 Received: by mail-pf1-x430.google.com with SMTP id a127so5483786pfa.10 for ; Mon, 14 Jun 2021 12:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EiJSvpvbOmHMIGNvTF2KRvPrsWT9/UKQ54J8UzR1MIM=; b=gRVbUq/45VMK/daoNgfrs4DEbvuW4c3C81cLQwZ0YL61Ouu79eQIMxhDr9QkauL3Bn h3sTEQz/+iS5eJfVQTfVnq1edaADKjtnk2rlPjTwbekGTZ9mB9e/2LJrFQlBgbZPFKB5 H74/Ft5TFZOQVbK6NYlJwilyl9wSwyw9iBh4fXJGirYVOyRZG3J0GtGaQkYr0ldffetO ymTmWKklyuoZUrl8vHXO43sFfFmIEvGGkxb+s07q39sM5JFmQx5E9K2m52l91Zt0WbBy Xsrn/bgAutdoFLP9S9vBWkC+vQQqvxCZsfr5jmy078Auxv5zxrCVKx4iZ33aZ9RhEBHx nuig== 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:mime-version :content-transfer-encoding; bh=EiJSvpvbOmHMIGNvTF2KRvPrsWT9/UKQ54J8UzR1MIM=; b=j3iV/F1JYmO1GJHXw9WfRj2g+F/oomjkrOmFE4QX5IZLbQh5QDHYaHSVzLRwoTGITM gs2UHAEZ6RravDFnlVaB8ptmQCgcDbrVU0C5CcinNuoFthtka5bjXPoO+2uDmMOVc00K MRpLVFvF9EgE6ox5VkUjBnIij/jZqRhihtvsENQNO0M8xhKHbPrFFAAOzprVD2UrFV1s qQ0xY5EhlYDPyX27CgkFOAx4sEWNZNFMZskGo34o7uZMMukdInmb/e4RuqdeggzyGwo5 fifZFtu4wP2Rr5cIzezXjWt9aPfoQAur3W4CWmQJfSlXuZBz7PMncelqrQib4cDiir+K WWiQ== X-Gm-Message-State: AOAM531EuPjGKO/A2MhdqPvwpOzILRyHIIAMvqFbuIVbVXiZLHK/s5yQ fc7PuoGKEb2ep7FOftMfjBW6PW7ZAosdGg== X-Google-Smtp-Source: ABdhPJzWVhRJBKpclpyhfgQXdLJfn3nBHM8a+15duJ5y62nzmUbwIFl5mI8sBLTw3x+UAEyExxdtYw== X-Received: by 2002:a65:6393:: with SMTP id h19mr7366664pgv.95.1623698252444; Mon, 14 Jun 2021 12:17:32 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::a054]) by smtp.gmail.com with ESMTPSA id d8sm13592148pfq.198.2021.06.14.12.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 12:17:32 -0700 (PDT) From: Khem Raj To: qemu-devel@nongnu.org Subject: [PATCH] linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list Date: Mon, 14 Jun 2021 12:17:29 -0700 Message-Id: <20210614191729.2981488-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=raj.khem@gmail.com; helo=mail-pf1-x430.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, FREEMAIL_FROM=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , Khem Raj Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" glibc 2.34 is now checking for this in hwcaps at runtime [1] and failing to run the binary if machine does not support 128bit IEEE fp Fixes Fatal glibc error: CPU lacks float128 support (POWER 9 or later required) [1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d337345ce145e23c5f3a956f349d924fdf54ce2d;hp=eb24865637a271ab7dad13190330105eab0d478d Signed-off-by: Khem Raj Cc: Florian Weimer Reviewed-by: Laurent Vivier --- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 17ab06f612..e7dd18fd40 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -830,7 +830,7 @@ static uint32_t get_elf_hwcap2(void) PPC2_ISA207S), QEMU_PPC_FEATURE2_ARCH_2_07 | QEMU_PPC_FEATURE2_VEC_CRYPTO); GET_FEATURE2(PPC2_ISA300, QEMU_PPC_FEATURE2_ARCH_3_00 | - QEMU_PPC_FEATURE2_DARN); + QEMU_PPC_FEATURE2_DARN | QEMU_PPC_FEATURE2_HAS_IEEE128); #undef GET_FEATURE #undef GET_FEATURE2