Skip to contentSkip to conversation

ppc64: Change default machine to mac99

PATCH In review Andreas Färber 2 participants 2 messages Dec 19, 2009 – Dec 20, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: Change default machine to mac99

Also change the New World default CPU to 970FX for ppc64, since the G4 is a 32-bit CPU.

---
 hw/ppc_newworld.c |    7 +++++++
 hw/ppc_oldworld.c |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
hw/ppc_newworld.c +7 -0
index a09f096..a4c714a 100644
@@ -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)
hw/ppc_oldworld.c +2 -0
index c90b151..7ccc6a1 100644
@@ -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)
Signature · 1 line
1.6.5.2