Commit 190cd0215b1667d41db4ca2f04f0e1fa8c75027c

Authored by pbrook
1 parent a0b753df

Remove redundant ram_require machine properly.

Signed-off-by: Paul Brook <paul@codesourcery.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7090 c046a42c-6fe2-441c-8c8c-71466251a162
hw/an5206.c
... ... @@ -88,5 +88,4 @@ QEMUMachine an5206_machine = {
88 88 .name = "an5206",
89 89 .desc = "Arnewsh 5206",
90 90 .init = an5206_init,
91   - .ram_require = 512,
92 91 };
... ...
hw/axis_dev88.c
... ... @@ -366,5 +366,4 @@ QEMUMachine axisdev88_machine = {
366 366 .name = "axis-dev88",
367 367 .desc = "AXIS devboard 88",
368 368 .init = axisdev88_init,
369   - .ram_require = 0x8000000,
370 369 };
... ...
hw/boards.h
... ... @@ -14,8 +14,6 @@ typedef struct QEMUMachine {
14 14 const char *name;
15 15 const char *desc;
16 16 QEMUMachineInitFunc *init;
17   -#define RAMSIZE_FIXED (1 << 0)
18   - ram_addr_t ram_require;
19 17 int use_scsi;
20 18 int max_cpus;
21 19 struct QEMUMachine *next;
... ...
hw/etraxfs.c
... ... @@ -157,5 +157,4 @@ QEMUMachine bareetraxfs_machine = {
157 157 .name = "bareetraxfs",
158 158 .desc = "Bare ETRAX FS board",
159 159 .init = bareetraxfs_init,
160   - .ram_require = 0x8000000,
161 160 };
... ...
hw/gumstix.c
... ... @@ -113,12 +113,10 @@ QEMUMachine connex_machine = {
113 113 .name = "connex",
114 114 .desc = "Gumstix Connex (PXA255)",
115 115 .init = connex_init,
116   - .ram_require = (0x05000000 + PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED,
117 116 };
118 117  
119 118 QEMUMachine verdex_machine = {
120 119 .name = "verdex",
121 120 .desc = "Gumstix Verdex (PXA270)",
122 121 .init = verdex_init,
123   - .ram_require = (0x12000000 + PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED,
124 122 };
... ...
hw/integratorcp.c
... ... @@ -510,5 +510,4 @@ QEMUMachine integratorcp_machine = {
510 510 .name = "integratorcp",
511 511 .desc = "ARM Integrator/CP (ARM926EJ-S)",
512 512 .init = integratorcp_init,
513   - .ram_require = 0x100000,
514 513 };
... ...
hw/mainstone.c
... ... @@ -139,6 +139,4 @@ QEMUMachine mainstone2_machine = {
139 139 .name = "mainstone",
140 140 .desc = "Mainstone II (PXA27x)",
141 141 .init = mainstone_init,
142   - .ram_require = (MAINSTONE_RAM + MAINSTONE_ROM + 2 * MAINSTONE_FLASH +
143   - PXA2XX_INTERNAL_SIZE) | RAMSIZE_FIXED,
144 142 };
... ...
hw/mcf5208.c
... ... @@ -294,5 +294,4 @@ QEMUMachine mcf5208evb_machine = {
294 294 .name = "mcf5208evb",
295 295 .desc = "MCF5206EVB",
296 296 .init = mcf5208evb_init,
297   - .ram_require = 16384,
298 297 };
... ...
hw/mips_jazz.c
... ... @@ -292,7 +292,6 @@ QEMUMachine mips_magnum_machine = {
292 292 .name = "magnum",
293 293 .desc = "MIPS Magnum",
294 294 .init = mips_magnum_init,
295   - .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE,
296 295 .use_scsi = 1,
297 296 };
298 297  
... ... @@ -300,6 +299,5 @@ QEMUMachine mips_pica61_machine = {
300 299 .name = "pica61",
301 300 .desc = "Acer Pica 61",
302 301 .init = mips_pica61_init,
303   - .ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE,
304 302 .use_scsi = 1,
305 303 };
... ...
hw/mips_malta.c
... ... @@ -958,5 +958,4 @@ QEMUMachine mips_malta_machine = {
958 958 .name = "malta",
959 959 .desc = "MIPS Malta Core LV",
960 960 .init = mips_malta_init,
961   - .ram_require = VGA_RAM_SIZE + BIOS_SIZE,
962 961 };
... ...
hw/mips_mipssim.c
... ... @@ -187,5 +187,4 @@ QEMUMachine mips_mipssim_machine = {
187 187 .name = "mipssim",
188 188 .desc = "MIPS MIPSsim platform",
189 189 .init = mips_mipssim_init,
190   - .ram_require = BIOS_SIZE + VGA_RAM_SIZE /* unused */,
191 190 };
... ...
hw/mips_r4k.c
... ... @@ -284,5 +284,4 @@ QEMUMachine mips_machine = {
284 284 .name = "mips",
285 285 .desc = "mips r4k platform",
286 286 .init = mips_r4k_init,
287   - .ram_require = VGA_RAM_SIZE + BIOS_SIZE,
288 287 };
... ...
hw/musicpal.c
... ... @@ -1594,6 +1594,4 @@ QEMUMachine musicpal_machine = {
1594 1594 .name = "musicpal",
1595 1595 .desc = "Marvell 88w8618 / MusicPal (ARM926EJ-S)",
1596 1596 .init = musicpal_init,
1597   - .ram_require = MP_RAM_DEFAULT_SIZE + MP_SRAM_SIZE +
1598   - MP_FLASH_SIZE_MAX + RAMSIZE_FIXED,
1599 1597 };
... ...
hw/nseries.c
... ... @@ -1407,14 +1407,10 @@ 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 + 0x00018000 + OMAP242X_SRAM_SIZE) |
1411   - RAMSIZE_FIXED,
1412 1410 };
1413 1411  
1414 1412 QEMUMachine n810_machine = {
1415 1413 .name = "n810",
1416 1414 .desc = "Nokia N810 tablet aka. RX-44 (OMAP2420)",
1417 1415 .init = n810_init,
1418   - .ram_require = (0x08000000 + 0x00018000 + OMAP242X_SRAM_SIZE) |
1419   - RAMSIZE_FIXED,
1420 1416 };
... ...
hw/omap_sx1.c
... ... @@ -227,12 +227,10 @@ QEMUMachine sx1_machine_v2 = {
227 227 .name = "sx1",
228 228 .desc = "Siemens SX1 (OMAP310) V2",
229 229 .init = sx1_init_v2,
230   - .ram_require = total_ram_v2 | RAMSIZE_FIXED,
231 230 };
232 231  
233 232 QEMUMachine sx1_machine_v1 = {
234 233 .name = "sx1-v1",
235 234 .desc = "Siemens SX1 (OMAP310) V1",
236 235 .init = sx1_init_v1,
237   - .ram_require = total_ram_v1 | RAMSIZE_FIXED,
238 236 };
... ...
hw/palm.c
... ... @@ -285,6 +285,4 @@ 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) |
289   - RAMSIZE_FIXED,
290 288 };
... ...
... ... @@ -1137,7 +1137,6 @@ QEMUMachine pc_machine = {
1137 1137 .name = "pc",
1138 1138 .desc = "Standard PC",
1139 1139 .init = pc_init_pci,
1140   - .ram_require = VGA_RAM_SIZE + PC_MAX_BIOS_SIZE,
1141 1140 .max_cpus = 255,
1142 1141 };
1143 1142  
... ... @@ -1145,6 +1144,5 @@ QEMUMachine isapc_machine = {
1145 1144 .name = "isapc",
1146 1145 .desc = "ISA-only PC",
1147 1146 .init = pc_init_isa,
1148   - .ram_require = VGA_RAM_SIZE + PC_MAX_BIOS_SIZE,
1149 1147 .max_cpus = 1,
1150 1148 };
... ...
hw/ppc405_boards.c
... ... @@ -349,7 +349,6 @@ QEMUMachine ref405ep_machine = {
349 349 .name = "ref405ep",
350 350 .desc = "ref405ep",
351 351 .init = ref405ep_init,
352   - .ram_require = (128 * 1024 * 1024 + 4096 + 512 * 1024 + BIOS_SIZE) | RAMSIZE_FIXED,
353 352 };
354 353  
355 354 /*****************************************************************************/
... ... @@ -630,5 +629,4 @@ QEMUMachine taihu_machine = {
630 629 "taihu",
631 630 "taihu",
632 631 taihu_405ep_init,
633   - (128 * 1024 * 1024 + 4096 + BIOS_SIZE + 32 * 1024 * 1024) | RAMSIZE_FIXED,
634 632 };
... ...
hw/ppc440_bamboo.c
... ... @@ -190,5 +190,4 @@ QEMUMachine bamboo_machine = {
190 190 .name = "bamboo",
191 191 .desc = "bamboo",
192 192 .init = bamboo_init,
193   - .ram_require = 8<<20 | RAMSIZE_FIXED,
194 193 };
... ...
hw/ppc_newworld.c
... ... @@ -357,6 +357,5 @@ QEMUMachine core99_machine = {
357 357 .name = "mac99",
358 358 .desc = "Mac99 based PowerMAC",
359 359 .init = ppc_core99_init,
360   - .ram_require = BIOS_SIZE + VGA_BIOS_SIZE + VGA_RAM_SIZE,
361 360 .max_cpus = MAX_CPUS,
362 361 };
... ...
hw/ppc_oldworld.c
... ... @@ -388,6 +388,5 @@ QEMUMachine heathrow_machine = {
388 388 .name = "g3beige",
389 389 .desc = "Heathrow based PowerMAC",
390 390 .init = ppc_heathrow_init,
391   - .ram_require = BIOS_SIZE + VGA_BIOS_SIZE + VGA_RAM_SIZE,
392 391 .max_cpus = MAX_CPUS,
393 392 };
... ...
hw/ppc_prep.c
... ... @@ -764,6 +764,5 @@ QEMUMachine prep_machine = {
764 764 .name = "prep",
765 765 .desc = "PowerPC PREP platform",
766 766 .init = ppc_prep_init,
767   - .ram_require = BIOS_SIZE + VGA_RAM_SIZE,
768 767 .max_cpus = MAX_CPUS,
769 768 };
... ...
hw/ppce500_mpc8544ds.c
... ... @@ -286,5 +286,4 @@ QEMUMachine mpc8544ds_machine = {
286 286 .name = "mpc8544ds",
287 287 .desc = "mpc8544ds",
288 288 .init = mpc8544ds_init,
289   - .ram_require = RAM_SIZES_ALIGN | RAMSIZE_FIXED,
290 289 };
... ...
hw/r2d.c
... ... @@ -262,5 +262,4 @@ QEMUMachine r2d_machine = {
262 262 .name = "r2d",
263 263 .desc = "r2d-plus board",
264 264 .init = r2d_init,
265   - .ram_require = (SDRAM_SIZE + SM501_VRAM_SIZE) | RAMSIZE_FIXED,
266 265 };
... ...
hw/realview.c
... ... @@ -204,6 +204,5 @@ QEMUMachine realview_machine = {
204 204 .name = "realview",
205 205 .desc = "ARM RealView Emulation Baseboard (ARM926EJ-S)",
206 206 .init = realview_init,
207   - .ram_require = 0x1000,
208 207 .use_scsi = 1,
209 208 };
... ...
hw/shix.c
... ... @@ -92,5 +92,4 @@ QEMUMachine shix_machine = {
92 92 .name = "shix",
93 93 .desc = "shix card",
94 94 .init = shix_init,
95   - .ram_require = (0x00004000 + 0x01000000 + 0x01000000) | RAMSIZE_FIXED,
96 95 };
... ...
hw/spitz.c
... ... @@ -1003,26 +1003,22 @@ QEMUMachine akitapda_machine = {
1003 1003 .name = "akita",
1004 1004 .desc = "Akita PDA (PXA270)",
1005 1005 .init = akita_init,
1006   - .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED,
1007 1006 };
1008 1007  
1009 1008 QEMUMachine spitzpda_machine = {
1010 1009 .name = "spitz",
1011 1010 .desc = "Spitz PDA (PXA270)",
1012 1011 .init = spitz_init,
1013   - .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED,
1014 1012 };
1015 1013  
1016 1014 QEMUMachine borzoipda_machine = {
1017 1015 .name = "borzoi",
1018 1016 .desc = "Borzoi PDA (PXA270)",
1019 1017 .init = borzoi_init,
1020   - .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED,
1021 1018 };
1022 1019  
1023 1020 QEMUMachine terrierpda_machine = {
1024 1021 .name = "terrier",
1025 1022 .desc = "Terrier PDA (PXA270)",
1026 1023 .init = terrier_init,
1027   - .ram_require = SPITZ_RAM + SPITZ_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED,
1028 1024 };
... ...
hw/stellaris.c
... ... @@ -1398,12 +1398,10 @@ QEMUMachine lm3s811evb_machine = {
1398 1398 .name = "lm3s811evb",
1399 1399 .desc = "Stellaris LM3S811EVB",
1400 1400 .init = lm3s811evb_init,
1401   - .ram_require = (64 * 1024 + 8 * 1024) | RAMSIZE_FIXED,
1402 1401 };
1403 1402  
1404 1403 QEMUMachine lm3s6965evb_machine = {
1405 1404 .name = "lm3s6965evb",
1406 1405 .desc = "Stellaris LM3S6965EVB",
1407 1406 .init = lm3s6965evb_init,
1408   - .ram_require = (256 * 1024 + 64 * 1024) | RAMSIZE_FIXED,
1409 1407 };
... ...
hw/sun4m.c
... ... @@ -83,9 +83,6 @@
83 83 #define CFG_ADDR 0xd00000510ULL
84 84 #define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00)
85 85  
86   -// Control plane, 8-bit and 24-bit planes
87   -#define TCX_SIZE (9 * 1024 * 1024)
88   -
89 86 #define MAX_CPUS 16
90 87 #define MAX_PILS 16
91 88  
... ... @@ -1028,7 +1025,6 @@ QEMUMachine ss5_machine = {
1028 1025 .name = "SS-5",
1029 1026 .desc = "Sun4m platform, SPARCstation 5",
1030 1027 .init = ss5_init,
1031   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1032 1028 .use_scsi = 1,
1033 1029 };
1034 1030  
... ... @@ -1036,7 +1032,6 @@ QEMUMachine ss10_machine = {
1036 1032 .name = "SS-10",
1037 1033 .desc = "Sun4m platform, SPARCstation 10",
1038 1034 .init = ss10_init,
1039   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1040 1035 .use_scsi = 1,
1041 1036 .max_cpus = 4,
1042 1037 };
... ... @@ -1045,7 +1040,6 @@ QEMUMachine ss600mp_machine = {
1045 1040 .name = "SS-600MP",
1046 1041 .desc = "Sun4m platform, SPARCserver 600MP",
1047 1042 .init = ss600mp_init,
1048   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1049 1043 .use_scsi = 1,
1050 1044 .max_cpus = 4,
1051 1045 };
... ... @@ -1054,7 +1048,6 @@ QEMUMachine ss20_machine = {
1054 1048 .name = "SS-20",
1055 1049 .desc = "Sun4m platform, SPARCstation 20",
1056 1050 .init = ss20_init,
1057   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1058 1051 .use_scsi = 1,
1059 1052 .max_cpus = 4,
1060 1053 };
... ... @@ -1063,7 +1056,6 @@ QEMUMachine voyager_machine = {
1063 1056 .name = "Voyager",
1064 1057 .desc = "Sun4m platform, SPARCstation Voyager",
1065 1058 .init = vger_init,
1066   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1067 1059 .use_scsi = 1,
1068 1060 };
1069 1061  
... ... @@ -1071,7 +1063,6 @@ QEMUMachine ss_lx_machine = {
1071 1063 .name = "LX",
1072 1064 .desc = "Sun4m platform, SPARCstation LX",
1073 1065 .init = ss_lx_init,
1074   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1075 1066 .use_scsi = 1,
1076 1067 };
1077 1068  
... ... @@ -1079,7 +1070,6 @@ QEMUMachine ss4_machine = {
1079 1070 .name = "SS-4",
1080 1071 .desc = "Sun4m platform, SPARCstation 4",
1081 1072 .init = ss4_init,
1082   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1083 1073 .use_scsi = 1,
1084 1074 };
1085 1075  
... ... @@ -1087,7 +1077,6 @@ QEMUMachine scls_machine = {
1087 1077 .name = "SPARCClassic",
1088 1078 .desc = "Sun4m platform, SPARCClassic",
1089 1079 .init = scls_init,
1090   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1091 1080 .use_scsi = 1,
1092 1081 };
1093 1082  
... ... @@ -1095,7 +1084,6 @@ QEMUMachine sbook_machine = {
1095 1084 .name = "SPARCbook",
1096 1085 .desc = "Sun4m platform, SPARCbook",
1097 1086 .init = sbook_init,
1098   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1099 1087 .use_scsi = 1,
1100 1088 };
1101 1089  
... ... @@ -1348,7 +1336,6 @@ QEMUMachine ss1000_machine = {
1348 1336 .name = "SS-1000",
1349 1337 .desc = "Sun4d platform, SPARCserver 1000",
1350 1338 .init = ss1000_init,
1351   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1352 1339 .use_scsi = 1,
1353 1340 .max_cpus = 8,
1354 1341 };
... ... @@ -1357,7 +1344,6 @@ QEMUMachine ss2000_machine = {
1357 1344 .name = "SS-2000",
1358 1345 .desc = "Sun4d platform, SPARCcenter 2000",
1359 1346 .init = ss2000_init,
1360   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1361 1347 .use_scsi = 1,
1362 1348 .max_cpus = 20,
1363 1349 };
... ... @@ -1566,6 +1552,5 @@ QEMUMachine ss2_machine = {
1566 1552 .name = "SS-2",
1567 1553 .desc = "Sun4c platform, SPARCstation 2",
1568 1554 .init = ss2_init,
1569   - .ram_require = PROM_SIZE_MAX + TCX_SIZE,
1570 1555 .use_scsi = 1,
1571 1556 };
... ...
hw/sun4u.c
... ... @@ -593,7 +593,6 @@ QEMUMachine sun4u_machine = {
593 593 .name = "sun4u",
594 594 .desc = "Sun4u platform",
595 595 .init = sun4u_init,
596   - .ram_require = PROM_SIZE_MAX + VGA_RAM_SIZE,
597 596 .max_cpus = 1, // XXX for now
598 597 };
599 598  
... ... @@ -601,7 +600,6 @@ QEMUMachine sun4v_machine = {
601 600 .name = "sun4v",
602 601 .desc = "Sun4v platform",
603 602 .init = sun4v_init,
604   - .ram_require = PROM_SIZE_MAX + VGA_RAM_SIZE,
605 603 .max_cpus = 1, // XXX for now
606 604 };
607 605  
... ... @@ -609,6 +607,5 @@ QEMUMachine niagara_machine = {
609 607 .name = "Niagara",
610 608 .desc = "Sun4v platform, Niagara",
611 609 .init = niagara_init,
612   - .ram_require = PROM_SIZE_MAX + VGA_RAM_SIZE,
613 610 .max_cpus = 1, // XXX for now
614 611 };
... ...
hw/tosa.c
... ... @@ -240,5 +240,4 @@ QEMUMachine tosapda_machine = {
240 240 .name = "tosa",
241 241 .desc = "Tosa PDA (PXA255)",
242 242 .init = tosa_init,
243   - .ram_require = TOSA_RAM + TOSA_ROM + PXA2XX_INTERNAL_SIZE + RAMSIZE_FIXED + TC6393XB_RAM,
244 243 };
... ...