Skip to contentSkip to conversation

[4327] remove target ifdefs from vl.c

Qemu-devel Aurelien Jarno 1 participant 1 message May 4, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 4327

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4327
Author:   aurel32
Date:     2008-05-04 13:11:44 +0000 (Sun, 04 May 2008)

Log Message:
-----------
remove target ifdefs from vl.c

(Glauber Costa)

Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/boards.h
trunk/vl.c

Added Paths:
-----------

    trunk/target-arm/machine.c
    trunk/target-cris/machine.c
    trunk/target-i386/machine.c
    trunk/target-m68k/machine.c
    trunk/target-mips/machine.c
    trunk/target-ppc/machine.c
    trunk/target-sh4/machine.c
    trunk/target-sparc/machine.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +4 -1
@@ -311,6 +311,9 @@
 op.o: op.c
 	$(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
+machine.o: machine.c
+	$(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
 # HELPER_CFLAGS is used for all the code compiled with static register
 # variables
 ifeq ($(TARGET_BASE_ARCH), i386)
@@ -490,7 +493,7 @@
 # System emulator target
 ifndef CONFIG_USER_ONLY
 
-OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o
+OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o
 ifdef CONFIG_WIN32
 OBJS+=block-raw-win32.o
 else

Modified: trunk/hw/boards.h
===================================================================

hw/boards.h +1 -0
@@ -20,6 +20,7 @@
 } QEMUMachine;
 
 int qemu_register_machine(QEMUMachine *m);
+void register_machines(void);
 
 /* Axis ETRAX.  */
 extern QEMUMachine bareetraxfs_machine;

Added: trunk/target-arm/machine.c
===================================================================

target-arm/machine.c +213 -0

213 lines not on this page · raw message

Added: trunk/target-cris/machine.c
===================================================================

target-cris/machine.c +7 -0
@@ -0,0 +1,7 @@
+#include "hw/hw.h"
+#include "hw/boards.h"
+
+void register_machines(void)
+{
+    qemu_register_machine(&bareetraxfs_machine);
+}

Added: trunk/target-i386/machine.c
===================================================================

target-i386/machine.c +264 -0

264 lines not on this page · raw message

Added: trunk/target-m68k/machine.c
===================================================================

target-m68k/machine.c +9 -0
@@ -0,0 +1,9 @@
+#include "hw/hw.h"
+#include "hw/boards.h"
+
+void register_machines(void)
+{
+    qemu_register_machine(&mcf5208evb_machine);
+    qemu_register_machine(&an5206_machine);
+    qemu_register_machine(&dummy_m68k_machine);
+}

Added: trunk/target-mips/machine.c
===================================================================

target-mips/machine.c +22 -0
@@ -0,0 +1,22 @@
+#include "hw/hw.h"
+#include "hw/boards.h"
+
+void register_machines(void)
+{
+    qemu_register_machine(&mips_machine);
+    qemu_register_machine(&mips_magnum_machine);
+    qemu_register_machine(&mips_malta_machine);
+    qemu_register_machine(&mips_pica61_machine);
+    qemu_register_machine(&mips_mipssim_machine);
+}
+
+void cpu_save(QEMUFile *f, void *opaque)
+{
+}
+
+int cpu_load(QEMUFile *f, void *opaque, int version_id)
+{
+    return 0;
+}
+
+

Added: trunk/target-ppc/machine.c
===================================================================

target-ppc/machine.c +20 -0
@@ -0,0 +1,20 @@
+#include "hw/hw.h"
+#include "hw/boards.h"
+
+void register_machines(void)
+{
+    qemu_register_machine(&heathrow_machine);
+    qemu_register_machine(&core99_machine);
+    qemu_register_machine(&prep_machine);
+    qemu_register_machine(&ref405ep_machine);
+    qemu_register_machine(&taihu_machine);
+}
+
+void cpu_save(QEMUFile *f, void *opaque)
+{
+}
+
+int cpu_load(QEMUFile *f, void *opaque, int version_id)
+{
+    return 0;
+}

Added: trunk/target-sh4/machine.c
===================================================================

target-sh4/machine.c +8 -0
@@ -0,0 +1,8 @@
+#include "hw/hw.h"
+#include "hw/boards.h"
+
+void register_machines(void)
+{
+    qemu_register_machine(&shix_machine);
+    qemu_register_machine(&r2d_machine);
+}

Added: trunk/target-sparc/machine.c
===================================================================

target-sparc/machine.c +102 -0

102 lines not on this page · raw message

Modified: trunk/vl.c
===================================================================

vl.c +0 -619

631 lines not on this page · raw message