summaryrefslogtreecommitdiff
path: root/sim/ppc/hw_htab.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-10-26 04:37:54 +0000
committerAndrew Cagney <cagney@redhat.com>2001-10-26 04:37:54 +0000
commitb2582baab0ea1a84052e13b8e1543d816788a4a7 (patch)
tree434ba9d9d483463ac2ff877dc1e447f0373b22c8 /sim/ppc/hw_htab.c
parent4c9e922465995ac88a8f4e19e503da1079dc0196 (diff)
downloadgdb-b2582baab0ea1a84052e13b8e1543d816788a4a7.tar.gz
Chirp fixes:
* hw_htab.c (htab_map_binary): Don't try to map the text section when it is empty. * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not CHIRP_LOAD_BASE. (emul_chirp_create): Map in the interrupt table.
Diffstat (limited to 'sim/ppc/hw_htab.c')
-rw-r--r--sim/ppc/hw_htab.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sim/ppc/hw_htab.c b/sim/ppc/hw_htab.c
index 35aa5711371..50a7b6adfcc 100644
--- a/sim/ppc/hw_htab.c
+++ b/sim/ppc/hw_htab.c
@@ -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,