daily update
[deliverable/binutils-gdb.git] / sim / ppc / hw_htab.c
index 35aa57113710ee39e7f1c92c1b5512fe87298bfa..50a7b6adfcc1a34cfcf053fcc27a3b5bfc71cc83 100644 (file)
@@ -571,10 +571,12 @@ htab_map_binary(device *me,
   }
 
   /* set up virtual memory maps for each of the regions */
-  htab_map_region(me, memory, sizes.text_ra, sizes.text_base,
-                 sizes.text_bound - sizes.text_base,
-                 wimg, pp,
-                 htaborg, htabmask);
+  if (sizes.text_bound - sizes.text_base > 0) {
+    htab_map_region(me, memory, sizes.text_ra, sizes.text_base,
+                   sizes.text_bound - sizes.text_base,
+                   wimg, pp,
+                   htaborg, htabmask);
+  }
 
   htab_map_region(me, memory, sizes.data_ra, sizes.data_base,
                  sizes.data_bound - sizes.data_base,
This page took 0.023508 seconds and 4 git commands to generate.