OSDN Git Service

sim: bfin: handle large shift values with accumulator shift insns
authorvapier <vapier>
Sat, 18 Jun 2011 20:59:54 +0000 (20:59 +0000)
committervapier <vapier>
Sat, 18 Jun 2011 20:59:54 +0000 (20:59 +0000)
commit25f240d72f67bad62574cde6ade3eb95946ed9ba
tree5ccb20eaf644b697022f92931d4cb11e8728ef99
parent8a3277133225f2e5db6f804f31a71a022b65804f
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