aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/bfin/ChangeLog7
-rw-r--r--sim/bfin/machs.c20
2 files changed, 17 insertions, 10 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog
index 49f2d6b..8283086 100644
--- a/sim/bfin/ChangeLog
+++ b/sim/bfin/ChangeLog
@@ -1,5 +1,12 @@
2012-07-31 Mike Frysinger <vapier@gentoo.org>
+ * machs.c (bf54x_roms): Pass 0x1000 to alias field of BFROM, and
+ 0x10000 to the alias field of BFROMA.
+ (bf561_roms): Pass 0x1000 to alias field of BFROM.
+ (bf59x_roms): Pass 0x10000 to alias field of BFROMA.
+
+2012-07-31 Mike Frysinger <vapier@gentoo.org>
+
* machs.c (bfin_reg_fetch): Change return 0 to return -1, and
return -1 to return 4.
(bfin_reg_store): Likewise.
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,
};