sim: bfin: set bfrom alias field to correct size
authorMike Frysinger <vapier@gentoo.org>
Wed, 1 Aug 2012 03:31:55 +0000 (03:31 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 1 Aug 2012 03:31:55 +0000 (03:31 +0000)
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>
sim/bfin/ChangeLog
sim/bfin/machs.c

index 49f2d6b312d62a4c9b19c452a0639fa30552c5c2..8283086b036bcae8fd2fc774a958394b30647b44 100644 (file)
@@ -1,3 +1,10 @@
+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
index 04e39b597cabe3dbe4b3083e2f37651ae4fdf89c..4e5a694bf1c13d61466064a405c426119554a9cd 100644 (file)
@@ -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,
 };
 
This page took 0.027209 seconds and 4 git commands to generate.