]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: bfin: add missing VS set with add/sub insns
authorMike Frysinger <vapier@gentoo.org>
Sat, 26 Mar 2011 06:02:41 +0000 (06:02 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 26 Mar 2011 06:02:41 +0000 (06:02 +0000)
The 16bit add/sub insns missed setting the VS bit in ASTAT whenever the
V bit was also set.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/bfin/ChangeLog
sim/bfin/bfin-sim.c

index eacab65bbf788d3e61b3de6f7081bc020d2699d6..008edf0f9d31cd268bde31cfcd36c471e41500c0 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-26  Robin Getz  <robin.getz@analog.com>
+
+       * bfin-sim.c (decode_dsp32alu_0): Set VS when V is set.
+
 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
 
        * dv-bfin_gpio.c (bfin_gpio_port_event): Call HW_TRACE at every
index 467d74230705b9a937312fcc182bcea99a93d139..7e747ff1e34ad0a4badfb34efeb1048d91174cc1 100644 (file)
@@ -4122,6 +4122,9 @@ decode_dsp32alu_0 (SIM_CPU *cpu, bu16 iw0, bu16 iw1)
 
       SET_ASTATREG (ac0, ac0_i);
       SET_ASTATREG (v, v_i);
+      if (v_i)
+       SET_ASTATREG (vs, v_i);
+
       if (HL)
        SET_DREG_H (dst0, val << 16);
       else