]> git.proxmox.com Git - qemu.git/commitdiff
ppc64: Change default machine to mac99
authorAndreas Färber <andreas.faerber@web.de>
Sat, 19 Dec 2009 23:22:26 +0000 (00:22 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 21 Dec 2009 09:04:30 +0000 (10:04 +0100)
Also change the New World default CPU to 970FX for ppc64,
since the G4 is a 32-bit CPU.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/ppc_newworld.c
hw/ppc_oldworld.c

index a09f096ba32598296c38c7ae618192267e7fba3b..a4c714ae7f304028b0635402f857bf4d01a990b7 100644 (file)
@@ -119,7 +119,11 @@ static void ppc_core99_init (ram_addr_t ram_size,
 
     /* init CPUs */
     if (cpu_model == NULL)
+#ifdef TARGET_PPC64
+        cpu_model = "970fx";
+#else
         cpu_model = "G4";
+#endif
     for (i = 0; i < smp_cpus; i++) {
         env = cpu_init(cpu_model);
         if (!env) {
@@ -385,6 +389,9 @@ static QEMUMachine core99_machine = {
     .desc = "Mac99 based PowerMAC",
     .init = ppc_core99_init,
     .max_cpus = MAX_CPUS,
+#ifdef TARGET_PPC64
+    .is_default = 1,
+#endif
 };
 
 static void core99_machine_init(void)
index c90b1514870024cc99b12e587be4b611b2bb452e..7ccc6a14718c4e361d064a25e3ba3b44731c6c11 100644 (file)
@@ -409,7 +409,9 @@ static QEMUMachine heathrow_machine = {
     .desc = "Heathrow based PowerMAC",
     .init = ppc_heathrow_init,
     .max_cpus = MAX_CPUS,
+#ifndef TARGET_PPC64
     .is_default = 1,
+#endif
 };
 
 static void heathrow_machine_init(void)