sim: bfin: update AV and AC ASTAT bits with acc negation
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:12:16 +0000 (03:12 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:12:16 +0000 (03:12 +0000)
commitbeb378a5f2d5d4920dab8b2d7a0b4e3a16a037a0
tree79e7cb84095cbcec0d223c5eb3f53cb9100e105b
parente4a861d14b17b35b165f0f71db04993dcfdaceba
sim: bfin: update AV and AC ASTAT bits with acc negation

The Acc=-Acc insn can overflow or carry with edge values, so make sure
we update the ASTAT bits accordingly to match the hardware.  Also fix
a thinko where we always updated AC0 even when working with A1 regs.

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