Commit b0457b69209fca3fb40a85bd54d7f27eb4bad7e7

Authored by pbrook
1 parent 520860ef

Fix/remove bogus ram size checks.

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


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7087 c046a42c-6fe2-441c-8c8c-71466251a162
hw/nseries.c
@@ -1272,15 +1272,8 @@ static void n8x0_init(ram_addr_t ram_size, const char *boot_device, @@ -1272,15 +1272,8 @@ static void n8x0_init(ram_addr_t ram_size, const char *boot_device,
1272 { 1272 {
1273 struct n800_s *s = (struct n800_s *) qemu_mallocz(sizeof(*s)); 1273 struct n800_s *s = (struct n800_s *) qemu_mallocz(sizeof(*s));
1274 int sdram_size = binfo->ram_size; 1274 int sdram_size = binfo->ram_size;
1275 - int onenandram_size = 0x00010000;  
1276 DisplayState *ds; 1275 DisplayState *ds;
1277 1276
1278 - if (ram_size < sdram_size + onenandram_size + OMAP242X_SRAM_SIZE) {  
1279 - fprintf(stderr, "This architecture uses %i bytes of memory\n",  
1280 - sdram_size + onenandram_size + OMAP242X_SRAM_SIZE);  
1281 - exit(1);  
1282 - }  
1283 -  
1284 s->cpu = omap2420_mpu_init(sdram_size, cpu_model); 1277 s->cpu = omap2420_mpu_init(sdram_size, cpu_model);
1285 1278
1286 /* Setup peripherals 1279 /* Setup peripherals
hw/pxa2xx_lcd.c
@@ -302,7 +302,7 @@ static void pxa2xx_descriptor_load(struct pxa2xx_lcdc_s *s) @@ -302,7 +302,7 @@ static void pxa2xx_descriptor_load(struct pxa2xx_lcdc_s *s)
302 descptr = s->dma_ch[i].descriptor; 302 descptr = s->dma_ch[i].descriptor;
303 303
304 if (!(descptr >= PXA2XX_SDRAM_BASE && descptr + 304 if (!(descptr >= PXA2XX_SDRAM_BASE && descptr +
305 - sizeof(desc) <= PXA2XX_SDRAM_BASE + phys_ram_size)) 305 + sizeof(desc) <= PXA2XX_SDRAM_BASE + ram_size))
306 continue; 306 continue;
307 307
308 cpu_physical_memory_read(descptr, (void *)&desc, sizeof(desc)); 308 cpu_physical_memory_read(descptr, (void *)&desc, sizeof(desc));
@@ -764,7 +764,7 @@ static void pxa2xx_update_display(void *opaque) @@ -764,7 +764,7 @@ static void pxa2xx_update_display(void *opaque)
764 } 764 }
765 fbptr = s->dma_ch[ch].source; 765 fbptr = s->dma_ch[ch].source;
766 if (!(fbptr >= PXA2XX_SDRAM_BASE && 766 if (!(fbptr >= PXA2XX_SDRAM_BASE &&
767 - fbptr <= PXA2XX_SDRAM_BASE + phys_ram_size)) { 767 + fbptr <= PXA2XX_SDRAM_BASE + ram_size)) {
768 pxa2xx_dma_ber_set(s, ch); 768 pxa2xx_dma_ber_set(s, ch);
769 continue; 769 continue;
770 } 770 }