Commit 3dbbdc25557314f3338edd11b4569e4d6af600bf
1 parent
48024e4a
suppressed unneeded options - added isapc machine
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1606 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
40 additions
and
29 deletions
hw/pc.c
@@ -410,7 +410,8 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 }; | @@ -410,7 +410,8 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 }; | ||
410 | static void pc_init1(int ram_size, int vga_ram_size, int boot_device, | 410 | static void pc_init1(int ram_size, int vga_ram_size, int boot_device, |
411 | DisplayState *ds, const char **fd_filename, int snapshot, | 411 | DisplayState *ds, const char **fd_filename, int snapshot, |
412 | const char *kernel_filename, const char *kernel_cmdline, | 412 | const char *kernel_filename, const char *kernel_cmdline, |
413 | - const char *initrd_filename) | 413 | + const char *initrd_filename, |
414 | + int pci_enabled) | ||
414 | { | 415 | { |
415 | char buf[1024]; | 416 | char buf[1024]; |
416 | int ret, linux_boot, initrd_size, i, nb_nics1; | 417 | int ret, linux_boot, initrd_size, i, nb_nics1; |
@@ -637,8 +638,40 @@ static void pc_init1(int ram_size, int vga_ram_size, int boot_device, | @@ -637,8 +638,40 @@ static void pc_init1(int ram_size, int vga_ram_size, int boot_device, | ||
637 | } | 638 | } |
638 | } | 639 | } |
639 | 640 | ||
641 | +static void pc_init_pci(int ram_size, int vga_ram_size, int boot_device, | ||
642 | + DisplayState *ds, const char **fd_filename, | ||
643 | + int snapshot, | ||
644 | + const char *kernel_filename, | ||
645 | + const char *kernel_cmdline, | ||
646 | + const char *initrd_filename) | ||
647 | +{ | ||
648 | + pc_init1(ram_size, vga_ram_size, boot_device, | ||
649 | + ds, fd_filename, snapshot, | ||
650 | + kernel_filename, kernel_cmdline, | ||
651 | + initrd_filename, 1); | ||
652 | +} | ||
653 | + | ||
654 | +static void pc_init_isa(int ram_size, int vga_ram_size, int boot_device, | ||
655 | + DisplayState *ds, const char **fd_filename, | ||
656 | + int snapshot, | ||
657 | + const char *kernel_filename, | ||
658 | + const char *kernel_cmdline, | ||
659 | + const char *initrd_filename) | ||
660 | +{ | ||
661 | + pc_init1(ram_size, vga_ram_size, boot_device, | ||
662 | + ds, fd_filename, snapshot, | ||
663 | + kernel_filename, kernel_cmdline, | ||
664 | + initrd_filename, 0); | ||
665 | +} | ||
666 | + | ||
640 | QEMUMachine pc_machine = { | 667 | QEMUMachine pc_machine = { |
641 | "pc", | 668 | "pc", |
642 | "Standard PC", | 669 | "Standard PC", |
643 | - pc_init1, | 670 | + pc_init_pci, |
671 | +}; | ||
672 | + | ||
673 | +QEMUMachine isapc_machine = { | ||
674 | + "isapc", | ||
675 | + "ISA-only PC", | ||
676 | + pc_init_isa, | ||
644 | }; | 677 | }; |
qemu-doc.texi
@@ -138,6 +138,9 @@ usage: qemu [options] [disk_image] | @@ -138,6 +138,9 @@ usage: qemu [options] [disk_image] | ||
138 | 138 | ||
139 | General options: | 139 | General options: |
140 | @table @option | 140 | @table @option |
141 | +@item -M machine | ||
142 | +Select the emulated machine (@code{-M ?} for list) | ||
143 | + | ||
141 | @item -fda file | 144 | @item -fda file |
142 | @item -fdb file | 145 | @item -fdb file |
143 | Use @var{file} as floppy disk 0/1 image (@xref{disk_images}). You can | 146 | Use @var{file} as floppy disk 0/1 image (@xref{disk_images}). You can |
@@ -390,8 +393,6 @@ translation mode (@var{t}=none, lba or auto). Usually QEMU can guess | @@ -390,8 +393,6 @@ translation mode (@var{t}=none, lba or auto). Usually QEMU can guess | ||
390 | all thoses parameters. This option is useful for old MS-DOS disk | 393 | all thoses parameters. This option is useful for old MS-DOS disk |
391 | images. | 394 | images. |
392 | 395 | ||
393 | -@item -isa | ||
394 | -Simulate an ISA-only system (default is PCI system). | ||
395 | @item -std-vga | 396 | @item -std-vga |
396 | Simulate a standard VGA card with Bochs VBE extensions (default is | 397 | Simulate a standard VGA card with Bochs VBE extensions (default is |
397 | Cirrus Logic GD5446 PCI VGA) | 398 | Cirrus Logic GD5446 PCI VGA) |
@@ -1137,9 +1138,6 @@ The following options are specific to the PowerPC emulation: | @@ -1137,9 +1138,6 @@ The following options are specific to the PowerPC emulation: | ||
1137 | 1138 | ||
1138 | @table @option | 1139 | @table @option |
1139 | 1140 | ||
1140 | -@item -prep | ||
1141 | -Simulate a PREP system (default is PowerMAC) | ||
1142 | - | ||
1143 | @item -g WxH[xDEPTH] | 1141 | @item -g WxH[xDEPTH] |
1144 | 1142 | ||
1145 | Set the initial VGA graphic mode. The default is 800x600x15. | 1143 | Set the initial VGA graphic mode. The default is 800x600x15. |
vl.c
@@ -134,8 +134,6 @@ int adlib_enabled = 0; | @@ -134,8 +134,6 @@ int adlib_enabled = 0; | ||
134 | int gus_enabled = 0; | 134 | int gus_enabled = 0; |
135 | int es1370_enabled = 0; | 135 | int es1370_enabled = 0; |
136 | #endif | 136 | #endif |
137 | -int pci_enabled = 1; | ||
138 | -int prep_enabled = 0; | ||
139 | int rtc_utc = 1; | 137 | int rtc_utc = 1; |
140 | int cirrus_vga_enabled = 1; | 138 | int cirrus_vga_enabled = 1; |
141 | #ifdef TARGET_SPARC | 139 | #ifdef TARGET_SPARC |
@@ -3087,9 +3085,6 @@ enum { | @@ -3087,9 +3085,6 @@ enum { | ||
3087 | QEMU_OPTION_hdachs, | 3085 | QEMU_OPTION_hdachs, |
3088 | QEMU_OPTION_L, | 3086 | QEMU_OPTION_L, |
3089 | QEMU_OPTION_no_code_copy, | 3087 | QEMU_OPTION_no_code_copy, |
3090 | - QEMU_OPTION_pci, | ||
3091 | - QEMU_OPTION_isa, | ||
3092 | - QEMU_OPTION_prep, | ||
3093 | QEMU_OPTION_k, | 3088 | QEMU_OPTION_k, |
3094 | QEMU_OPTION_localtime, | 3089 | QEMU_OPTION_localtime, |
3095 | QEMU_OPTION_cirrusvga, | 3090 | QEMU_OPTION_cirrusvga, |
@@ -3163,14 +3158,10 @@ const QEMUOption qemu_options[] = { | @@ -3163,14 +3158,10 @@ const QEMUOption qemu_options[] = { | ||
3163 | #ifdef USE_KQEMU | 3158 | #ifdef USE_KQEMU |
3164 | { "no-kqemu", 0, QEMU_OPTION_no_kqemu }, | 3159 | { "no-kqemu", 0, QEMU_OPTION_no_kqemu }, |
3165 | #endif | 3160 | #endif |
3166 | -#ifdef TARGET_PPC | ||
3167 | - { "prep", 0, QEMU_OPTION_prep }, | ||
3168 | -#endif | ||
3169 | #if defined(TARGET_PPC) || defined(TARGET_SPARC) | 3161 | #if defined(TARGET_PPC) || defined(TARGET_SPARC) |
3170 | { "g", 1, QEMU_OPTION_g }, | 3162 | { "g", 1, QEMU_OPTION_g }, |
3171 | #endif | 3163 | #endif |
3172 | { "localtime", 0, QEMU_OPTION_localtime }, | 3164 | { "localtime", 0, QEMU_OPTION_localtime }, |
3173 | - { "isa", 0, QEMU_OPTION_isa }, | ||
3174 | { "std-vga", 0, QEMU_OPTION_std_vga }, | 3165 | { "std-vga", 0, QEMU_OPTION_std_vga }, |
3175 | { "monitor", 1, QEMU_OPTION_monitor }, | 3166 | { "monitor", 1, QEMU_OPTION_monitor }, |
3176 | { "serial", 1, QEMU_OPTION_serial }, | 3167 | { "serial", 1, QEMU_OPTION_serial }, |
@@ -3183,7 +3174,6 @@ const QEMUOption qemu_options[] = { | @@ -3183,7 +3174,6 @@ const QEMUOption qemu_options[] = { | ||
3183 | 3174 | ||
3184 | /* temporary options */ | 3175 | /* temporary options */ |
3185 | { "usb", 0, QEMU_OPTION_usb }, | 3176 | { "usb", 0, QEMU_OPTION_usb }, |
3186 | - { "pci", 0, QEMU_OPTION_pci }, | ||
3187 | { "cirrusvga", 0, QEMU_OPTION_cirrusvga }, | 3177 | { "cirrusvga", 0, QEMU_OPTION_cirrusvga }, |
3188 | { NULL }, | 3178 | { NULL }, |
3189 | }; | 3179 | }; |
@@ -3239,6 +3229,7 @@ void register_machines(void) | @@ -3239,6 +3229,7 @@ void register_machines(void) | ||
3239 | { | 3229 | { |
3240 | #if defined(TARGET_I386) | 3230 | #if defined(TARGET_I386) |
3241 | qemu_register_machine(&pc_machine); | 3231 | qemu_register_machine(&pc_machine); |
3232 | + qemu_register_machine(&isapc_machine); | ||
3242 | #elif defined(TARGET_PPC) | 3233 | #elif defined(TARGET_PPC) |
3243 | qemu_register_machine(&heathrow_machine); | 3234 | qemu_register_machine(&heathrow_machine); |
3244 | qemu_register_machine(&core99_machine); | 3235 | qemu_register_machine(&core99_machine); |
@@ -3676,15 +3667,6 @@ int main(int argc, char **argv) | @@ -3676,15 +3667,6 @@ int main(int argc, char **argv) | ||
3676 | case QEMU_OPTION_S: | 3667 | case QEMU_OPTION_S: |
3677 | start_emulation = 0; | 3668 | start_emulation = 0; |
3678 | break; | 3669 | break; |
3679 | - case QEMU_OPTION_pci: | ||
3680 | - pci_enabled = 1; | ||
3681 | - break; | ||
3682 | - case QEMU_OPTION_isa: | ||
3683 | - pci_enabled = 0; | ||
3684 | - break; | ||
3685 | - case QEMU_OPTION_prep: | ||
3686 | - prep_enabled = 1; | ||
3687 | - break; | ||
3688 | case QEMU_OPTION_k: | 3670 | case QEMU_OPTION_k: |
3689 | keyboard_layout = optarg; | 3671 | keyboard_layout = optarg; |
3690 | break; | 3672 | break; |
vl.h
@@ -488,8 +488,6 @@ void isa_unassign_ioport(int start, int length); | @@ -488,8 +488,6 @@ void isa_unassign_ioport(int start, int length); | ||
488 | 488 | ||
489 | /* PCI bus */ | 489 | /* PCI bus */ |
490 | 490 | ||
491 | -extern int pci_enabled; | ||
492 | - | ||
493 | extern target_phys_addr_t pci_mem_base; | 491 | extern target_phys_addr_t pci_mem_base; |
494 | 492 | ||
495 | typedef struct PCIBus PCIBus; | 493 | typedef struct PCIBus PCIBus; |
@@ -729,6 +727,7 @@ int pit_get_out(PITState *pit, int channel, int64_t current_time); | @@ -729,6 +727,7 @@ int pit_get_out(PITState *pit, int channel, int64_t current_time); | ||
729 | 727 | ||
730 | /* pc.c */ | 728 | /* pc.c */ |
731 | extern QEMUMachine pc_machine; | 729 | extern QEMUMachine pc_machine; |
730 | +extern QEMUMachine isapc_machine; | ||
732 | 731 | ||
733 | /* ppc.c */ | 732 | /* ppc.c */ |
734 | extern QEMUMachine prep_machine; | 733 | extern QEMUMachine prep_machine; |
@@ -745,7 +744,6 @@ void PREP_debug_write (void *opaque, uint32_t addr, uint32_t val); | @@ -745,7 +744,6 @@ void PREP_debug_write (void *opaque, uint32_t addr, uint32_t val); | ||
745 | 744 | ||
746 | extern CPUWriteMemoryFunc *PPC_io_write[]; | 745 | extern CPUWriteMemoryFunc *PPC_io_write[]; |
747 | extern CPUReadMemoryFunc *PPC_io_read[]; | 746 | extern CPUReadMemoryFunc *PPC_io_read[]; |
748 | -extern int prep_enabled; | ||
749 | void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val); | 747 | void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val); |
750 | 748 | ||
751 | /* sun4m.c */ | 749 | /* sun4m.c */ |