[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is d
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is disabled |
Date: |
Mon, 17 Sep 2012 18:00:49 +0200 |
Only cpu-exec.c is left in, even though in principle it is TCG-specific.
Removing it involves moving large parts of code from exec.c to there
(and perhaps the other way, too).
Signed-off-by: Paolo Bonzini <address@hidden>
---
Makefile.target | 5 +++--
target-i386/Makefile.objs | 7 ++++---
2 file modificati, 7 inserzioni(+), 5 rimozioni(-)
diff --git a/Makefile.target b/Makefile.target
index d9d54b8..2f1687a 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -69,8 +69,9 @@ all: $(PROGS) stap
#########################################################
# cpu emulator library
-obj-y = exec.o translate-all.o cpu-exec.o
-obj-y += tcg/tcg.o tcg/optimize.o
+obj-y = exec.o cpu-exec.o
+obj-$(CONFIG_TCG) += tcg/tcg.o tcg/optimize.o
+obj-$(CONFIG_TCG) += translate-all.o
obj-$(CONFIG_TCG_INTERPRETER) += tci.o
obj-y += fpu/softfloat.o
obj-y += disas.o
diff --git a/target-i386/Makefile.objs b/target-i386/Makefile.objs
index c1d4f05..b6cb055 100644
--- a/target-i386/Makefile.objs
+++ b/target-i386/Makefile.objs
@@ -1,6 +1,7 @@
-obj-y += translate.o helper.o cpu.o
-obj-y += excp_helper.o fpu_helper.o cc_helper.o int_helper.o svm_helper.o
-obj-y += smm_helper.o misc_helper.o mem_helper.o seg_helper.o
+obj-y += helper.o cpu.o
+obj-$(CONFIG_TCG) += translate.o
+obj-$(CONFIG_TCG) += excp_helper.o fpu_helper.o cc_helper.o int_helper.o
svm_helper.o
+obj-$(CONFIG_TCG) += smm_helper.o misc_helper.o mem_helper.o seg_helper.o
obj-$(CONFIG_SOFTMMU) += machine.o arch_memory_mapping.o arch_dump.o
obj-$(CONFIG_KVM) += kvm.o hyperv.o
obj-$(CONFIG_NO_KVM) += kvm-stub.o
--
1.7.12
- [Qemu-devel] [RFC PATCH 05/10] exec: small adjustments for TCG separation, (continued)
- [Qemu-devel] [RFC PATCH 05/10] exec: small adjustments for TCG separation, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 06/10] monitor: disable info jit if !TCG, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 09/10] i386: move TCG functions out of helper.o, non-TCG functions to cpu.o, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 07/10] configure: emit summary at the very end, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 03/10] vl: implement tcg_enabled() and tcg_available() as for other accelerators, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is disabled,
Paolo Bonzini <=
- [Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return void, Paolo Bonzini, 2012/09/17
Re: [Qemu-devel] [RFC PATCH 00/10] Add --disable-tcg, Blue Swirl, 2012/09/17