diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-10-26 04:37:54 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-10-26 04:37:54 +0000 |
commit | 560ba567a08f995fe5e2d24f47b504e3aca28fa6 (patch) | |
tree | 1e349f3bf8196c2597f642e78485247e47ca2c16 /sim/ppc/hw_htab.c | |
parent | 0398c9aabc5573e28f965098a0c4f6c45dcd0f0f (diff) | |
download | gdb-560ba567a08f995fe5e2d24f47b504e3aca28fa6.zip gdb-560ba567a08f995fe5e2d24f47b504e3aca28fa6.tar.gz gdb-560ba567a08f995fe5e2d24f47b504e3aca28fa6.tar.bz2 |
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.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sim/ppc/hw_htab.c b/sim/ppc/hw_htab.c index 35aa571..50a7b6a 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, |