sim: bfin: handle large shift values with accumulator shift insns
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 20:59:54 +0000 (20:59 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 20:59:54 +0000 (20:59 +0000)
commit90e13d65c1d6cc1d474a216eee760780a6c6f1ea
treee0d11805527b407571c56e4a2ed904f463ddf7f1
parent99dcc4dc6501c726df79173fa254faebc68a486d
sim: bfin: handle large shift values with accumulator shift insns

When the shift magnitude exceeds 32 bits, the values rotate around (since
the hardware is actually a barrel shifter).  So handle this edge case,
update the corresponding AV bit in ASTAT which was missing previously,
and tweak the AZ setting based on how the hardware behaves.

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