Commit 3d878caab914d6ac7b3b69e458971b7550ea790b

Authored by balrog
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
hw/an5206.c
... ... @@ -92,5 +92,4 @@ QEMUMachine an5206_machine = {
92 92 .desc = "Arnewsh 5206",
93 93 .init = an5206_init,
94 94 .ram_require = 512,
95   - .max_cpus = 1,
96 95 };
... ...
hw/dummy_m68k.c
... ... @@ -66,5 +66,4 @@ QEMUMachine dummy_m68k_machine = {
66 66 .name = "dummy",
67 67 .desc = "Dummy board",
68 68 .init = dummy_m68k_init,
69   - .max_cpus = 1,
70 69 };
... ...
hw/etraxfs.c
... ... @@ -157,5 +157,4 @@ QEMUMachine bareetraxfs_machine = {
157 157 .desc = "Bare ETRAX FS board",
158 158 .init = bareetraxfs_init,
159 159 .ram_require = 0x8000000,
160   - .max_cpus = 1,
161 160 };
... ...
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
... ... @@ -544,5 +544,4 @@ QEMUMachine integratorcp_machine = {
544 544 .desc = "ARM Integrator/CP (ARM926EJ-S)",
545 545 .init = integratorcp_init,
546 546 .ram_require = 0x100000,
547   - .max_cpus = 1,
548 547 };
... ...
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
... ... @@ -309,5 +309,4 @@ QEMUMachine mcf5208evb_machine = {
309 309 .desc = "MCF5206EVB",
310 310 .init = mcf5208evb_init,
311 311 .ram_require = 16384,
312   - .max_cpus = 1,
313 312 };
... ...
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
... ... @@ -950,5 +950,4 @@ QEMUMachine mips_malta_machine = {
950 950 .init = mips_malta_init,
951 951 .ram_require = VGA_RAM_SIZE + BIOS_SIZE,
952 952 .nodisk_ok = 1,
953   - .max_cpus = 1,
954 953 };
... ...
hw/mips_mipssim.c
... ... @@ -196,5 +196,4 @@ QEMUMachine mips_mipssim_machine = {
196 196 .init = mips_mipssim_init,
197 197 .ram_require = BIOS_SIZE + VGA_RAM_SIZE /* unused */,
198 198 .nodisk_ok = 1,
199   - .max_cpus = 1,
200 199 };
... ...
hw/mips_r4k.c
... ... @@ -287,5 +287,4 @@ QEMUMachine mips_machine = {
287 287 .init = mips_r4k_init,
288 288 .ram_require = VGA_RAM_SIZE + BIOS_SIZE,
289 289 .nodisk_ok = 1,
290   - .max_cpus = 1,
291 290 };
... ...
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
... ... @@ -335,5 +335,5 @@ QEMUMachine core99_machine = {
335 335 .desc = "Mac99 based PowerMAC",
336 336 .init = ppc_core99_init,
337 337 .ram_require = BIOS_SIZE + VGA_RAM_SIZE,
338   - .max_cpus = 1,
  338 + .max_cpus = MAX_CPUS,
339 339 };
... ...
hw/ppc_oldworld.c
... ... @@ -370,5 +370,5 @@ QEMUMachine heathrow_machine = {
370 370 .desc = "Heathrow based PowerMAC",
371 371 .init = ppc_heathrow_init,
372 372 .ram_require = BIOS_SIZE + VGA_RAM_SIZE,
373   - .max_cpus = 1,
  373 + .max_cpus = MAX_CPUS,
374 374 };
... ...
hw/ppc_prep.c
... ... @@ -764,5 +764,5 @@ QEMUMachine prep_machine = {
764 764 .desc = "PowerPC PREP platform",
765 765 .init = ppc_prep_init,
766 766 .ram_require = BIOS_SIZE + VGA_RAM_SIZE,
767   - .max_cpus = 1,
  767 + .max_cpus = MAX_CPUS,
768 768 };
... ...
hw/r2d.c
... ... @@ -168,5 +168,4 @@ QEMUMachine r2d_machine = {
168 168 .desc = "r2d-plus board",
169 169 .init = r2d_init,
170 170 .ram_require = SDRAM_SIZE | RAMSIZE_FIXED,
171   - .max_cpus = 1,
172 171 };
... ...
hw/realview.c
... ... @@ -202,5 +202,4 @@ QEMUMachine realview_machine = {
202 202 .init = realview_init,
203 203 .ram_require = 0x1000,
204 204 .use_scsi = 1,
205   - .max_cpus = 1,
206 205 };
... ...
hw/shix.c
... ... @@ -112,5 +112,4 @@ QEMUMachine shix_machine = {
112 112 .desc = "shix card",
113 113 .init = shix_init,
114 114 .ram_require = (0x00004000 + 0x01000000 + 0x01000000) | RAMSIZE_FIXED,
115   - .max_cpus = 1,
116 115 };
... ...
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
... ... @@ -123,5 +123,4 @@ QEMUMachine tosapda_machine = {
123 123 .desc = "Tosa PDA (PXA255)",
124 124 .init = tosa_init,
125 125 .ram_require = TOSA_RAM + TOSA_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED,
126   - .max_cpus = 1,
127 126 };
... ...
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 };
... ...
... ... @@ -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,
... ...