sim: bfin: fix dsp insns IH saturation/rounding behavior
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 19:24:57 +0000 (19:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 18 Jun 2011 19:24:57 +0000 (19:24 +0000)
commit075a845a9281b4bdef459b6494a7db3bf666b911
tree153cb39d0879e6148c180453892ffe7ba36f53d9
parentb02cc5b9df3085cad87f914f7616cdec809630bc
sim: bfin: fix dsp insns IH saturation/rounding behavior

When using the IH modifier, we need to first saturate the value before
rounding it, and then further saturate it a bit more.  This makes the
sim match the hardware behavior with these insns.

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