Received: from eggs.gnu.org ([140.186.70.92]:59632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri1xT-0004PN-Ky for qemu-devel@nongnu.org; Tue, 03 Jan 2012 05:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ri1xN-0004Fl-S9 for qemu-devel@nongnu.org; Tue, 03 Jan 2012 05:51:07 -0500 Date: Tue, 3 Jan 2012 10:50:58 +0000 From: Stefan Hajnoczi Message-ID: <20120103105058.GA28684@stefanha-thinkpad.localdomain> References: <1324732045-5516-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1324732045-5516-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] configure: Fix test for supported host CPU type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Stefan Weil , qemu-devel@nongnu.org, patches@linaro.org On Sat, Dec 24, 2011 at 01:07:25PM +0000, Peter Maydell wrote: > The test for whether the host CPU is supported had several problems: > * the attempt to fall back to TCI was done as a duplicate > test, very late (so "--cpu foo" would fail early but "--cpu unicore32" > would fail late, differently, and after configure had already > printed a lot of output) > * a number of CPUs only supported as guests were included in the > list of CPUs we would accept as valid hosts, which would result > in a late compile failure on those systems rather than a > configure failure or fallback to TCI > * bailing out for an unsupported CPU happened before the main > option parsing, so "configure --help" wouldn't work > > Fix these by folding the setting of ARCH into the first test for > supported host CPU, removing spurious guest-only CPU names from it, > and moving the "fall back to TCI" code earlier. > > Signed-off-by: Peter Maydell > --- > configure | 44 +++++++++++++++++++++----------------------- > 1 files changed, 21 insertions(+), 23 deletions(-) Thanks, applied to the trivial patches -next tree: https://github.com/stefanha/qemu/commits/trivial-patches-next Stefan