aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-01 04:21:03 +0000
committerMike Frysinger <vapier@gentoo.org>2012-04-01 04:21:03 +0000
commit02bb38cc809b286293a8227b86a64b09420754c0 (patch)
tree05524878150f151bb373f4f496091df67b1cf9ad /sim
parent5de10af023f4409d36481733610ed7e9c2fcb8b6 (diff)
downloadgdb-02bb38cc809b286293a8227b86a64b09420754c0.zip
gdb-02bb38cc809b286293a8227b86a64b09420754c0.tar.gz
gdb-02bb38cc809b286293a8227b86a64b09420754c0.tar.bz2
sim: bfin: fix unused bfrom handling for BF535
machs.c: In function 'bfin_model_cpu_init': machs.c:1657:1: warning: 'bfrom' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim')
-rw-r--r--sim/bfin/ChangeLog4
-rw-r--r--sim/bfin/machs.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog
index 8d5d49f..70d9275 100644
--- a/sim/bfin/ChangeLog
+++ b/sim/bfin/ChangeLog
@@ -1,5 +1,9 @@
2012-04-01 Mike Frysinger <vapier@gentoo.org>
+ * machs.c (bfin_model_map_bfrom): Return when mnum is 535.
+
+2012-04-01 Mike Frysinger <vapier@gentoo.org>
+
* interp.c (bfin_user_init): Move auxvt_size decl from top to
inside of auxvt check.
diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c
index ed6b0b1..393a7b8 100644
--- a/sim/bfin/machs.c
+++ b/sim/bfin/machs.c
@@ -1583,7 +1583,7 @@ bfin_model_map_bfrom (SIM_DESC sd, SIM_CPU *cpu)
else if (mnum >= 531 && mnum <= 533)
bfrom = bf533_roms;
else if (mnum == 535)
- /* Stub. */;
+ return; /* Stub. */
else if (mnum >= 534 && mnum <= 537)
bfrom = bf537_roms;
else if (mnum >= 538 && mnum <= 539)