From: Mike Frysinger Date: Tue, 15 Mar 2011 20:10:40 +0000 (+0000) Subject: sim: bfin: handle AZ updates with 16bit adds/subs X-Git-Tag: gdb_7_3-branchpoint~238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=227d265839dcb5f90383a23e36dc7d0a5df62075;p=thirdparty%2Fbinutils-gdb.git sim: bfin: handle AZ updates with 16bit adds/subs We weren't updating AZ when doing a 16bit add or sub insn. Implement it. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index deaf6158616..5973570f95c 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,8 @@ +2011-03-15 Robin Getz + + * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds + and subs. + 2011-03-15 Robin Getz * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check. diff --git a/sim/bfin/bfin-sim.c b/sim/bfin/bfin-sim.c index 14cf41ad70d..64153884870 100644 --- a/sim/bfin/bfin-sim.c +++ b/sim/bfin/bfin-sim.c @@ -4128,7 +4128,7 @@ decode_dsp32alu_0 (SIM_CPU *cpu, bu16 iw0, bu16 iw1) SET_DREG_L (dst0, val); SET_ASTATREG (an, val & 0x8000); - + SET_ASTATREG (az, val == 0); } else if ((aop == 0 || aop == 2) && aopcde == 9 && s == 1) {