Skip to contentSkip to conversation

Intel Mac machine

PATCH In review Alexander Graf 1 participant 1 message Jan 8, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 7/9 Intel Mac machine

To leave the default behavior unchanged, this adds a "mac" machine definition for x86 that automatically chooses the right hardware for an emulated Intel Mac.
As x86 did not really know about models, the also adds a simple model interface.

hw/boards.h +1 -0
Index: qemu-snapshot-2008-01-08_05/hw/boards.h
===================================================================
@@ -23,6 +23,7 @@ int qemu_register_machine(QEMUMachine *m
 extern QEMUMachine bareetraxfs_machine;
 
 /* pc.c */
+extern QEMUMachine mac_machine;
 extern QEMUMachine pc_machine;
 extern QEMUMachine isapc_machine;
 
hw/pc.c +75 -29

223 lines not on this page · raw message

vl.c +1 -0
Index: qemu-snapshot-2008-01-08_05/vl.c
===================================================================
@@ -7881,6 +7881,7 @@ static void register_machines(void)
 {
 #if defined(TARGET_I386)
     qemu_register_machine(&pc_machine);
+    qemu_register_machine(&mac_machine);
     qemu_register_machine(&isapc_machine);
 #elif defined(TARGET_PPC)
     qemu_register_machine(&heathrow_machine);