From patchwork Thu Apr 4 18:57:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 10886103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18E7815AC for ; Thu, 4 Apr 2019 18:59:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 004AD28702 for ; Thu, 4 Apr 2019 18:59:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3B12286BD; Thu, 4 Apr 2019 18:59:38 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 62482286BD for ; Thu, 4 Apr 2019 18:59:38 +0000 (UTC) Received: from localhost ([127.0.0.1]:58718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC7aK-00078h-Qs for patchwork-qemu-devel@patchwork.kernel.org; Thu, 04 Apr 2019 14:59:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC7YO-0005ye-Ga for qemu-devel@nongnu.org; Thu, 04 Apr 2019 14:57:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hC7YN-0001zF-Iu for qemu-devel@nongnu.org; Thu, 04 Apr 2019 14:57:36 -0400 Received: from mout.gmx.net ([212.227.17.22]:52979) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hC7YN-0001uo-4z for qemu-devel@nongnu.org; Thu, 04 Apr 2019 14:57:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1554404252; bh=qZP/NYCqNUQDxulmtWMO0S3sXQelU5PULJTLRp17t6U=; h=X-UI-Sender-Class:Date:From:To:Subject; b=iTfff4FYWWupq4271YkzVl53WD5UmHnw6FY74IokneRzjdpj8qHCJTF36S2NqviBD diBWl8WCTCCyObhjQQo3m5roPKdaAynbJVYWJZjptMIDnFnLoXQmb43Hf9oTkQAWjM US9c3iWKTl1jiJ1L9Qt+kiAfnE4suCDauhxwnhT8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ls3530.dellerweb.de ([92.116.163.76]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MVJze-1hPpUA09YU-00YlbT; Thu, 04 Apr 2019 20:57:32 +0200 Date: Thu, 4 Apr 2019 20:57:30 +0200 From: Helge Deller To: qemu-devel@nongnu.org Message-ID: <20190404185730.GA22512@ls3530.dellerweb.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) X-Provags-ID: V03:K1:1iN9PAhhCZSYk9VLKX/xvX9dc1kCY4uMDGb64s+Mm1erTmi1L9f asreF1uX//Dtou4GNYTsssdiJCVYid4k5x6/4n43HGFOzRdCNopb5uNCmRBo/Dnz0PeIIOG XySoD6Y4nRAt8cL6ocnWm/xFyYyLogXqCxcVZ3qpcXOaBpoaNN9nPIFP9UXypRXzlJ/dD0u CFNcUghH7wiWji2j2tk8w== X-UI-Out-Filterresults: notjunk:1;V03:K0:yi5zBMC19BY=:DhZyHX84V5M+5T+MWM4puQ U4YuuWo7tgkzON6hYjOKvSCXw9nK8e4zaQaHGkKv3e5nBbNWzt3d5bf4uX0xSLJteSphsUMcL BerJD/GB9shRf69IIUZZ90yIZTy+amzUTIF+tVBoGWoOpqdL9xU1nwQp1kYUdL4o7Cz87veaa YlIAwTJEQgfldmGD6wLN295kc6/fHxQHkylp4dER2oPNOSBtHjyYP2Z0+kVgTCEYth+MnN3iJ r1XByAXhqLOnr/Kn4g9GmSBjFesrlkvuc9nouEtPBuqYV54dHfQWPniHQHqDpq8VRcC+HRv8Z IMHOh/RtNg3fDXVD+3Ynx9ObHScidVOoQKtGIi45aykzrvV/5usFu4zxjnVUNbbvXe36NoQd1 VbmER4GgPftMaWJqhaVEOE/1R1HN379yMdfDszC3aeqDuMVO+Ig1VTA1hVnTdZfEgzCFz0+My txDw/Deb2mj8F1AqjE/jNMJHBJpVuGVxZsyEREPhpPmG65K1cwazDpeyLishUB4namnVYXGge gWleZVQXFsgyDP3FTO4eJ/cVS1IHm5vUDHjP+DnOeWzivaEOlARYOHzHhfhEQFaBd0awbGjUf gCZ2Ca2z7saUKapeNNU2VdozBnGOdIK4m0/wt+b3PJ+qgZIltqJsV3foClBFbL0KhtPLijE4H QXhMcmD/CjPpjEdN4MCHW43Y7IgBrpoAaDyRBKRD7KGbC/S26is9bHNJp8qoM6ba2UC6Dr+pX 9V9oPEE5y2/bKNpGoY2N8areL3LWQW/asrqFywza9j3xXqLS1PO3wpTcfy5lbn9aKc2Hu7CMw th8objGakAJpn3/7NFY95F0LM9kZRF+1KQ7U+SZNvAoT/I/JqdNyu1WpHxc4hFuNjfBMZq4F6 6IOmx+08Yucop1zg6GUq8qg11AFbmmg1uj+OY/aXznuXA0CMsZJS2tyI+nsRqD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 Subject: [Qemu-devel] [PATCH] configure: Automatically fall back to TCI on non-release architectures 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: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP If a non-release architecture is found, and it's known that there is no native TCG support for that CPU, automatically fall back to the TCI implementation instead of requesting the user to run configure again with the --enable-tcg-interpreter option. This change simplifies building qemu in automatic build environments (like in my case the debian buildds) because one does not need to special case on the architectures. Signed-off-by: Helge Deller diff --git a/configure b/configure index 1c563a7027..8fe4fc84d8 100755 --- a/configure +++ b/configure @@ -769,8 +769,10 @@ case "$cpu" in cross_cc_sparc=$host_cc ;; *) - # This will result in either an error or falling back to TCI later + # Fall back to TCI on unsupported CPUs ARCH=unknown + echo "Unsupported '$cpu' CPU found. Will use TCG with TCI (experimental)." + tcg_interpreter="yes" ;; esac if test -z "$ARCH"; then @@ -1855,16 +1857,6 @@ if ! compile_prog ; then error_exit "\"$cc\" cannot build an executable (is your linker broken?)" fi -# Now we have handled --enable-tcg-interpreter and know we're not just -# printing the help message, bail out if the host CPU isn't supported. -if test "$ARCH" = "unknown"; then - if test "$tcg_interpreter" = "yes" ; then - echo "Unsupported CPU = $cpu, will use TCG with TCI (experimental)" - else - error_exit "Unsupported CPU = $cpu, try --enable-tcg-interpreter" - fi -fi - # Consult white-list to determine whether to enable werror # by default. Only enable by default for git builds if test -z "$werror" ; then