Commit 3d878caab914d6ac7b3b69e458971b7550ea790b
1 parent
d4354694
Set default max_cpus to one.
Clean-up machine definitions. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5566 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
26 changed files
with
13 additions
and
38 deletions
hw/an5206.c
hw/dummy_m68k.c
hw/etraxfs.c
hw/gumstix.c
... | ... | @@ -126,7 +126,6 @@ QEMUMachine connex_machine = { |
126 | 126 | .desc = "Gumstix Connex (PXA255)", |
127 | 127 | .init = connex_init, |
128 | 128 | .ram_require = (0x05000000 + PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED, |
129 | - .max_cpus = 1, | |
130 | 129 | }; |
131 | 130 | |
132 | 131 | QEMUMachine verdex_machine = { |
... | ... | @@ -134,5 +133,4 @@ QEMUMachine verdex_machine = { |
134 | 133 | .desc = "Gumstix Verdex (PXA270)", |
135 | 134 | .init = verdex_init, |
136 | 135 | .ram_require = (0x12000000 + PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED, |
137 | - .max_cpus = 1, | |
138 | 136 | }; | ... | ... |
hw/integratorcp.c
hw/mainstone.c
... | ... | @@ -148,6 +148,5 @@ QEMUMachine mainstone2_machine = { |
148 | 148 | .desc = "Mainstone II (PXA27x)", |
149 | 149 | .init = mainstone_init, |
150 | 150 | .ram_require = (MAINSTONE_RAM + MAINSTONE_ROM + 2 * MAINSTONE_FLASH + |
151 | - PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED, | |
152 | - .max_cpus = 1, | |
151 | + PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED, | |
153 | 152 | }; | ... | ... |
hw/mcf5208.c
hw/mips_jazz.c
... | ... | @@ -278,7 +278,6 @@ QEMUMachine mips_magnum_machine = { |
278 | 278 | .init = mips_magnum_init, |
279 | 279 | .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE, |
280 | 280 | .nodisk_ok = 1, |
281 | - .max_cpus = 1, | |
282 | 281 | }; |
283 | 282 | |
284 | 283 | QEMUMachine mips_pica61_machine = { |
... | ... | @@ -287,5 +286,4 @@ QEMUMachine mips_pica61_machine = { |
287 | 286 | .init = mips_pica61_init, |
288 | 287 | .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE, |
289 | 288 | .nodisk_ok = 1, |
290 | - .max_cpus = 1, | |
291 | 289 | }; | ... | ... |
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/musicpal.c
... | ... | @@ -1512,6 +1512,6 @@ QEMUMachine musicpal_machine = { |
1512 | 1512 | .name = "musicpal", |
1513 | 1513 | .desc = "Marvell 88w8618 / MusicPal (ARM926EJ-S)", |
1514 | 1514 | .init = musicpal_init, |
1515 | - .ram_require = MP_RAM_DEFAULT_SIZE + MP_SRAM_SIZE + MP_FLASH_SIZE_MAX + RAMSIZE_FIXED, | |
1516 | - .max_cpus = 1, | |
1515 | + .ram_require = MP_RAM_DEFAULT_SIZE + MP_SRAM_SIZE + | |
1516 | + MP_FLASH_SIZE_MAX + RAMSIZE_FIXED, | |
1517 | 1517 | }; | ... | ... |
hw/nseries.c
... | ... | @@ -1407,14 +1407,14 @@ QEMUMachine n800_machine = { |
1407 | 1407 | .name = "n800", |
1408 | 1408 | .desc = "Nokia N800 tablet aka. RX-34 (OMAP2420)", |
1409 | 1409 | .init = n800_init, |
1410 | - .ram_require = (0x08000000 + 0x00010000 + OMAP242X_SRAM_SIZE) | RAMSIZE_FIXED, | |
1411 | - .max_cpus = 1, | |
1410 | + .ram_require = (0x08000000 + 0x00010000 + OMAP242X_SRAM_SIZE) | | |
1411 | + RAMSIZE_FIXED, | |
1412 | 1412 | }; |
1413 | 1413 | |
1414 | 1414 | QEMUMachine n810_machine = { |
1415 | 1415 | .name = "n810", |
1416 | 1416 | .desc = "Nokia N810 tablet aka. RX-44 (OMAP2420)", |
1417 | 1417 | .init = n810_init, |
1418 | - .ram_require = (0x08000000 + 0x00010000 + OMAP242X_SRAM_SIZE) | RAMSIZE_FIXED, | |
1419 | - .max_cpus = 1, | |
1418 | + .ram_require = (0x08000000 + 0x00010000 + OMAP242X_SRAM_SIZE) | | |
1419 | + RAMSIZE_FIXED, | |
1420 | 1420 | }; | ... | ... |
hw/palm.c
... | ... | @@ -285,6 +285,6 @@ QEMUMachine palmte_machine = { |
285 | 285 | .name = "cheetah", |
286 | 286 | .desc = "Palm Tungsten|E aka. Cheetah PDA (OMAP310)", |
287 | 287 | .init = palmte_init, |
288 | - .ram_require = (0x02000000 + 0x00800000 + OMAP15XX_SRAM_SIZE) | RAMSIZE_FIXED, | |
289 | - .max_cpus = 1, | |
288 | + .ram_require = (0x02000000 + 0x00800000 + OMAP15XX_SRAM_SIZE) | | |
289 | + RAMSIZE_FIXED, | |
290 | 290 | }; | ... | ... |
hw/ppc405_boards.c
... | ... | @@ -359,7 +359,6 @@ QEMUMachine ref405ep_machine = { |
359 | 359 | .desc = "ref405ep", |
360 | 360 | .init = ref405ep_init, |
361 | 361 | .ram_require = (128 * 1024 * 1024 + 4096 + 512 * 1024 + BIOS_SIZE) | RAMSIZE_FIXED, |
362 | - .max_cpus = 1, | |
363 | 362 | }; |
364 | 363 | |
365 | 364 | /*****************************************************************************/ | ... | ... |
hw/ppc_chrp.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/r2d.c
hw/realview.c
hw/shix.c
hw/spitz.c
... | ... | @@ -1014,7 +1014,6 @@ QEMUMachine akitapda_machine = { |
1014 | 1014 | .desc = "Akita PDA (PXA270)", |
1015 | 1015 | .init = akita_init, |
1016 | 1016 | .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED, |
1017 | - .max_cpus = 1, | |
1018 | 1017 | }; |
1019 | 1018 | |
1020 | 1019 | QEMUMachine spitzpda_machine = { |
... | ... | @@ -1022,7 +1021,6 @@ QEMUMachine spitzpda_machine = { |
1022 | 1021 | .desc = "Spitz PDA (PXA270)", |
1023 | 1022 | .init = spitz_init, |
1024 | 1023 | .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED, |
1025 | - .max_cpus = 1, | |
1026 | 1024 | }; |
1027 | 1025 | |
1028 | 1026 | QEMUMachine borzoipda_machine = { |
... | ... | @@ -1030,7 +1028,6 @@ QEMUMachine borzoipda_machine = { |
1030 | 1028 | .desc = "Borzoi PDA (PXA270)", |
1031 | 1029 | .init = borzoi_init, |
1032 | 1030 | .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED, |
1033 | - .max_cpus = 1, | |
1034 | 1031 | }; |
1035 | 1032 | |
1036 | 1033 | QEMUMachine terrierpda_machine = { |
... | ... | @@ -1038,5 +1035,4 @@ QEMUMachine terrierpda_machine = { |
1038 | 1035 | .desc = "Terrier PDA (PXA270)", |
1039 | 1036 | .init = terrier_init, |
1040 | 1037 | .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED, |
1041 | - .max_cpus = 1, | |
1042 | 1038 | }; | ... | ... |
hw/stellaris.c
... | ... | @@ -1417,7 +1417,6 @@ QEMUMachine lm3s811evb_machine = { |
1417 | 1417 | .desc = "Stellaris LM3S811EVB", |
1418 | 1418 | .init = lm3s811evb_init, |
1419 | 1419 | .ram_require = (64 * 1024 + 8 * 1024) | RAMSIZE_FIXED, |
1420 | - .max_cpus = 1, | |
1421 | 1420 | }; |
1422 | 1421 | |
1423 | 1422 | QEMUMachine lm3s6965evb_machine = { |
... | ... | @@ -1425,5 +1424,4 @@ QEMUMachine lm3s6965evb_machine = { |
1425 | 1424 | .desc = "Stellaris LM3S6965EVB", |
1426 | 1425 | .init = lm3s6965evb_init, |
1427 | 1426 | .ram_require = (256 * 1024 + 64 * 1024) | RAMSIZE_FIXED, |
1428 | - .max_cpus = 1, | |
1429 | 1427 | }; | ... | ... |
hw/tosa.c
hw/versatilepb.c
... | ... | @@ -320,7 +320,6 @@ QEMUMachine versatilepb_machine = { |
320 | 320 | .desc = "ARM Versatile/PB (ARM926EJ-S)", |
321 | 321 | .init = vpb_init, |
322 | 322 | .use_scsi = 1, |
323 | - .max_cpus = 1, | |
324 | 323 | }; |
325 | 324 | |
326 | 325 | QEMUMachine versatileab_machine = { |
... | ... | @@ -328,5 +327,4 @@ QEMUMachine versatileab_machine = { |
328 | 327 | .desc = "ARM Versatile/AB (ARM926EJ-S)", |
329 | 328 | .init = vab_init, |
330 | 329 | .use_scsi = 1, |
331 | - .max_cpus = 1, | |
332 | 330 | }; | ... | ... |
vl.c
... | ... | @@ -9407,6 +9407,7 @@ int main(int argc, char **argv) |
9407 | 9407 | } |
9408 | 9408 | } |
9409 | 9409 | |
9410 | + machine->max_cpus = machine->max_cpus ?: 1; /* Default to UP */ | |
9410 | 9411 | if (smp_cpus > machine->max_cpus) { |
9411 | 9412 | fprintf(stderr, "Number of SMP cpus requested (%d), exceeds max cpus " |
9412 | 9413 | "supported by machine `%s' (%d)\n", smp_cpus, machine->name, | ... | ... |