]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/core: Move null-machine into the common-obj list
authorThomas Huth <thuth@redhat.com>
Fri, 19 Oct 2018 12:28:49 +0000 (14:28 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 24 Oct 2018 06:27:25 +0000 (07:27 +0100)
The null-machine code used to be target specific since it used the
target-specific cpu_init() function in the past. But in the recent
commit 2278b93941d42c30e2950 ("Use cpu_create(type) instead of
cpu_init(cpu_model)") this has been change, so that the code now
uses the common cpu_create() function instead. Thus we can put
the null-machine into the common-obj list so that it is compiled
only once for all targets, to save some compilation time.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/core/Makefile.objs
hw/core/null-machine.c

index b736ce223a6b5d41650318348ec7f9391ae125f0..a799c83815b942f1849765f14e1001a4520684bb 100644 (file)
@@ -21,5 +21,4 @@ common-obj-$(CONFIG_SOFTMMU) += or-irq.o
 common-obj-$(CONFIG_SOFTMMU) += split-irq.o
 common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o
 common-obj-$(CONFIG_SOFTMMU) += generic-loader.o
-
-obj-$(CONFIG_SOFTMMU) += null-machine.o
+common-obj-$(CONFIG_SOFTMMU) += null-machine.o
index cde4d3eb57c9a75b6fc10a4852812836af6e9995..76d3f8e39cb9dbaa457f29e4f709dec3981a6b6f 100644 (file)
@@ -18,7 +18,7 @@
 #include "hw/boards.h"
 #include "sysemu/sysemu.h"
 #include "exec/address-spaces.h"
-#include "cpu.h"
+#include "qom/cpu.h"
 
 static void machine_none_init(MachineState *mch)
 {