aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-14 20:54:49 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-14 20:56:39 -0400
commitb19839da382a4755e91d0a943b6d89d13fd74972 (patch)
treebd9bb3970afb402afdd682a9ba2e329a705cabc0
parent1303206d7f8de81c685f486c857d533d5bcf827d (diff)
downloadgdb-b19839da382a4755e91d0a943b6d89d13fd74972.zip
gdb-b19839da382a4755e91d0a943b6d89d13fd74972.tar.gz
gdb-b19839da382a4755e91d0a943b6d89d13fd74972.tar.bz2
sim: bfin: fix signed warning
Fix the type of the local var to match the function it is passed to.
-rw-r--r--sim/bfin/ChangeLog4
-rw-r--r--sim/bfin/bfin-sim.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog
index 764bad2..ee5f81c 100644
--- a/sim/bfin/ChangeLog
+++ b/sim/bfin/ChangeLog
@@ -1,5 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
+ * bfin-sim.c (decode_dsp32alu_0): Change v to bu32.
+
+2015-03-14 Mike Frysinger <vapier@gentoo.org>
+
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-10 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/bfin/bfin-sim.c b/sim/bfin/bfin-sim.c
index 179d2b6..364ee29 100644
--- a/sim/bfin/bfin-sim.c
+++ b/sim/bfin/bfin-sim.c
@@ -4537,7 +4537,7 @@ decode_dsp32alu_0 (SIM_CPU *cpu, bu16 iw0, bu16 iw1)
else if ((aop == 0 || aop == 1) && aopcde == 14 && x == 0 && s == 0)
{
bs40 src_acc = get_extended_acc (cpu, aop);
- int v = 0;
+ bu32 v = 0;
TRACE_INSN (cpu, "A%i = - A%i;", HL, aop);