diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:13:53 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:13:53 +0000 |
commit | 77d4bc349abd61ba2e12327e40f95bfc4069f2a0 (patch) | |
tree | eb913f7c3be7dda596205e6d82521727107f560c /vl.c | |
parent | a2a444d6e097d0890a47e83ca6cf7dab35d043e2 (diff) |
PowerPC prep/chrp/pmac support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@863 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -93,8 +93,11 @@ extern void __sigaction(); #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 @@ QEMUTimer *gui_timer; int vm_running; int audio_enabled = 0; int pci_enabled = 0; +int prep_enabled = 0; /***********************************************************/ /* x86 ISA bus support */ @@ -876,12 +880,17 @@ int serial_open_device(void) /* 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 @@ enum { QEMU_OPTION_L, QEMU_OPTION_no_code_copy, QEMU_OPTION_pci, + QEMU_OPTION_prep, }; typedef struct QEMUOption { @@ -2049,7 +2059,12 @@ const QEMUOption qemu_options[] = { { "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 @@ int main(int argc, char **argv) case QEMU_OPTION_pci: pci_enabled = 1; break; + case QEMU_OPTION_prep: + prep_enabled = 1; + break; } } } |