aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/machs.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-01 03:31:55 +0000
committerMike Frysinger <vapier@gentoo.org>2012-08-01 03:31:55 +0000
commit040a4d109e2b173069320e125cd3d35ca7935dd3 (patch)
tree13ac7903de9aa7795693d1d6ef0719b8b0b88198 /sim/bfin/machs.c
parentb5539f23a007948b94f7565488b33ca9fd4c6ab0 (diff)
downloadgdb-040a4d109e2b173069320e125cd3d35ca7935dd3.zip
gdb-040a4d109e2b173069320e125cd3d35ca7935dd3.tar.gz
gdb-040a4d109e2b173069320e125cd3d35ca7935dd3.tar.bz2
sim: bfin: set bfrom alias field to correct size
When the sim is built w/out the bfroms, we end up passing a length of 0 when mapping the rom region which the core sim code rejects. So add an alias field equal to the length to avoid that error. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/bfin/machs.c')
-rw-r--r--sim/bfin/machs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c
index 04e39b5..4e5a694 100644
--- a/sim/bfin/machs.c
+++ b/sim/bfin/machs.c
@@ -1619,27 +1619,27 @@ static const struct bfrom bf538_roms[] =
};
static const struct bfrom bf54x_roms[] =
{
- BFROM (54x, 4, 0),
- BFROM (54x, 2, 0),
- BFROM (54x, 1, 0),
- BFROM (54x, 0, 0),
- BFROMA (0xffa14000, 54x_l1, 4, 0),
- BFROMA (0xffa14000, 54x_l1, 2, 0),
- BFROMA (0xffa14000, 54x_l1, 1, 0),
- BFROMA (0xffa14000, 54x_l1, 0, 0),
+ BFROM (54x, 4, 0x1000),
+ BFROM (54x, 2, 0x1000),
+ BFROM (54x, 1, 0x1000),
+ BFROM (54x, 0, 0x1000),
+ BFROMA (0xffa14000, 54x_l1, 4, 0x10000),
+ BFROMA (0xffa14000, 54x_l1, 2, 0x10000),
+ BFROMA (0xffa14000, 54x_l1, 1, 0x10000),
+ BFROMA (0xffa14000, 54x_l1, 0, 0x10000),
BFROM_STUB,
};
static const struct bfrom bf561_roms[] =
{
/* XXX: No idea what the actual wrap limit is here. */
- BFROM (561, 5, 0),
+ BFROM (561, 5, 0x1000),
BFROM_STUB,
};
static const struct bfrom bf59x_roms[] =
{
BFROM (59x, 1, 0x1000000),
BFROM (59x, 0, 0x1000000),
- BFROMA (0xffa10000, 59x_l1, 1, 0),
+ BFROMA (0xffa10000, 59x_l1, 1, 0x10000),
BFROM_STUB,
};