sim: bfin: fix sign extension in dsp insns with MM flag
commit35f7d1359384eaf0e772888ae2093f5a9b966d3c
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 19:42:54 +0000 (18 19:42 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 19:42:54 +0000 (18 19:42 +0000)
tree5670ef3daa82d911be2e77814be9447b312832f8
parentdd0c671384e9cd90b7774d2685a52dc055597ef1
sim: bfin: fix sign extension in dsp insns with MM flag

After testing the hardware with all the different dsp flags, the MM flag
triggers sign extension in all modes.  So drop the limited use of it, and
the local custom helper that was also extending unsigned values.  We also
can see that the flag checks in the mult/mac insns have the same behavior
with sign extending, so add a helper func to keep the logic the same in
both places.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/opcode/ChangeLog
include/opcode/bfin.h