sim: bfin: fix sign extension with 16bit acc add insns
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Mar 2011 01:41:49 +0000 (01:41 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 29 Mar 2011 01:41:49 +0000 (01:41 +0000)
commit1a3af0bfc3b53c392923b62275c9ca72bee46f7b
tree2b361ef14e07d47c408ad814b1a9e84376ae4539
parentf4a2f576d439afac300134257b3d9fcfc7e15fd3
sim: bfin: fix sign extension with 16bit acc add insns

The current implementation attempts to handle the 16bit sign extension
itself.  Unfortunately, it gets it right in some cases.  So rather than
fix that logic, just drop it in favor of using 16bit signed casts.  Now
gcc will take care of getting the logic right.

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