PowerPC prep/chrp/pmac support


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@863 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/vl.c b/vl.c
index 85c6623..6faf19f 100644
--- a/vl.c
+++ b/vl.c
@@ -93,8 +93,11 @@
 #define PHYS_RAM_MAX_SIZE (2047 * 1024 * 1024)
 #endif
 
+#ifdef TARGET_PPC
+#define DEFAULT_RAM_SIZE 144
+#else
 #define DEFAULT_RAM_SIZE 32
-
+#endif
 /* in ms */
 #define GUI_REFRESH_INTERVAL 30
 
@@ -125,6 +128,7 @@
 int vm_running;
 int audio_enabled = 0;
 int pci_enabled = 0;
+int prep_enabled = 0;
 
 /***********************************************************/
 /* x86 ISA bus support */
@@ -876,12 +880,17 @@
         /* use console for serial port */
         return 0;
     } else {
+#if 0
+        /* Not satisfying */
         if (openpty(&master_fd, &slave_fd, slave_name, NULL, NULL) < 0) {
             fprintf(stderr, "warning: could not create pseudo terminal for serial port\n");
             return -1;
         }
         fprintf(stderr, "Serial port redirected to %s\n", slave_name);
         return master_fd;
+#else
+        return -1;
+#endif
     }
 }
 
@@ -2005,6 +2014,7 @@
     QEMU_OPTION_L,
     QEMU_OPTION_no_code_copy,
     QEMU_OPTION_pci,
+    QEMU_OPTION_prep,
 };
 
 typedef struct QEMUOption {
@@ -2049,7 +2059,12 @@
     { "hdachs", HAS_ARG, QEMU_OPTION_hdachs },
     { "L", HAS_ARG, QEMU_OPTION_L },
     { "no-code-copy", 0, QEMU_OPTION_no_code_copy },
+
+    /* temporary options */
     { "pci", 0, QEMU_OPTION_pci },
+#ifdef TARGET_PPC
+    { "prep", 0, QEMU_OPTION_prep },
+#endif
     { NULL },
 };
 
@@ -2323,6 +2338,9 @@
             case QEMU_OPTION_pci:
                 pci_enabled = 1;
                 break;
+            case QEMU_OPTION_prep:
+                prep_enabled = 1;
+                break;
             }
         }
     }