From patchwork Mon Aug 3 12:46:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 30C5BB6F2B for ; Tue, 4 Aug 2009 00:59:32 +1000 (EST) Received: from localhost ([127.0.0.1]:56003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXz0a-0007X6-Fv for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 10:59:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXwzt-0003qI-0M for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXwzn-0003mo-Dy for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:35 -0400 Received: from [199.232.76.173] (port=51722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXwzn-0003mZ-14 for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:31 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40887) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXwzm-0007BM-EF for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:30 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73CoTeh007362; Mon, 3 Aug 2009 08:50:29 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73CoStw026933; Mon, 3 Aug 2009 08:50:29 -0400 Received: from localhost.localdomain (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73Cn8N4009715; Mon, 3 Aug 2009 08:50:27 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:46:51 +0200 Message-Id: <1092f7fd471c05f6eca175da4fa81eaeedfaddbb.1249301360.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 60/81] Generate more conmmon CFLAGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- Makefile.target | 7 ------- configure | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile.target b/Makefile.target index 8fbf9ca..7fff12d 100644 --- a/Makefile.target +++ b/Makefile.target @@ -43,14 +43,7 @@ all: $(PROGS) # cpu emulator library libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o libobj-$(CONFIG_KQEMU) += kqemu.o -# TCG code generator libobj-y += tcg/tcg.o tcg/tcg-runtime.o -QEMU_CFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH) -ifeq ($(ARCH),sparc64) -QEMU_CFLAGS+=-I$(SRC_PATH)/tcg/sparc -endif -QEMU_CFLAGS+=-I$(SRC_PATH)/fpu - libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o libobj-y += op_helper.o helper.o diff --git a/configure b/configure index 00ebf11..b5055e2 100755 --- a/configure +++ b/configure @@ -2068,6 +2068,14 @@ fi cflags="" ldflags="" +if test "$ARCH" = "sparc64" ; then + cflags="-I\$(SRC_PATH)/tcg/sparc $cflags" +else + cflags="-I\$(SRC_PATH)/tcg/\$(ARCH) $cflags" +fi +cflags="-I\$(SRC_PATH)/tcg $cflags" +cflags="-I\$(SRC_PATH)/fpu $cflags" + case "$ARCH" in alpha) # Ensure there's only a single GP