diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-18 19:24:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-06-18 19:24:57 +0000 |
commit | 075a845a9281b4bdef459b6494a7db3bf666b911 (patch) | |
tree | 153cb39d0879e6148c180453892ffe7ba36f53d9 /sim/bfin/ChangeLog | |
parent | b02cc5b9df3085cad87f914f7616cdec809630bc (diff) | |
download | gdb-075a845a9281b4bdef459b6494a7db3bf666b911.zip gdb-075a845a9281b4bdef459b6494a7db3bf666b911.tar.gz gdb-075a845a9281b4bdef459b6494a7db3bf666b911.tar.bz2 |
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>
Diffstat (limited to 'sim/bfin/ChangeLog')
-rw-r--r-- | sim/bfin/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index aaea1e5..72bd358 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,10 @@ 2011-06-18 Robin Getz <robin.getz@analog.com> + * bfin-sim.c (extract_mult): When mmod is M_IH, change the order + from round/saturate to saturate/round/saturate. + +2011-06-18 Robin Getz <robin.getz@analog.com> + * bfin-sim.c (saturate_s40_astat): Change ">=" to ">". (decode_macfunc): Likewise when mmod is M_IH. |