qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7087] Fix/remove bogus ram size checks.
@ 2009-04-11 17:01 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2009-04-11 17:01 UTC (permalink / raw)
  To: qemu-devel

Revision: 7087
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7087
Author:   pbrook
Date:     2009-04-11 17:01:42 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Fix/remove bogus ram size checks.

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

Modified Paths:
--------------
    trunk/hw/nseries.c
    trunk/hw/pxa2xx_lcd.c

Modified: trunk/hw/nseries.c
===================================================================
--- trunk/hw/nseries.c	2009-04-11 16:55:44 UTC (rev 7086)
+++ trunk/hw/nseries.c	2009-04-11 17:01:42 UTC (rev 7087)
@@ -1272,15 +1272,8 @@
 {
     struct n800_s *s = (struct n800_s *) qemu_mallocz(sizeof(*s));
     int sdram_size = binfo->ram_size;
-    int onenandram_size = 0x00010000;
     DisplayState *ds;
 
-    if (ram_size < sdram_size + onenandram_size + OMAP242X_SRAM_SIZE) {
-        fprintf(stderr, "This architecture uses %i bytes of memory\n",
-                        sdram_size + onenandram_size + OMAP242X_SRAM_SIZE);
-        exit(1);
-    }
-
     s->cpu = omap2420_mpu_init(sdram_size, cpu_model);
 
     /* Setup peripherals

Modified: trunk/hw/pxa2xx_lcd.c
===================================================================
--- trunk/hw/pxa2xx_lcd.c	2009-04-11 16:55:44 UTC (rev 7086)
+++ trunk/hw/pxa2xx_lcd.c	2009-04-11 17:01:42 UTC (rev 7087)
@@ -302,7 +302,7 @@
             descptr = s->dma_ch[i].descriptor;
 
         if (!(descptr >= PXA2XX_SDRAM_BASE && descptr +
-                    sizeof(desc) <= PXA2XX_SDRAM_BASE + phys_ram_size))
+                    sizeof(desc) <= PXA2XX_SDRAM_BASE + ram_size))
             continue;
 
         cpu_physical_memory_read(descptr, (void *)&desc, sizeof(desc));
@@ -764,7 +764,7 @@
             }
             fbptr = s->dma_ch[ch].source;
             if (!(fbptr >= PXA2XX_SDRAM_BASE &&
-                    fbptr <= PXA2XX_SDRAM_BASE + phys_ram_size)) {
+                    fbptr <= PXA2XX_SDRAM_BASE + ram_size)) {
                 pxa2xx_dma_ber_set(s, ch);
                 continue;
             }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-11 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-11 17:01 [Qemu-devel] [7087] Fix/remove bogus ram size checks Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).