From e62bb22a4b6fa21c1138ab1d3e999d84b27b5e2b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 19 Mar 2012 05:06:23 +0000 Subject: sim: bfin: fix corner case Logical shift issues From: Robin Getz Overflow with shift operations happens independently of saturation, but we have the logic merged. Extend the lshift function so that callers can tell it when to handle each independently, and then do so when it's needed. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- sim/bfin/ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sim/bfin/ChangeLog') diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index bac48f3..35863c9 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,14 @@ +2012-03-19 Robin Getz + Mike Frysinger + + * bfin-sim.c (lshift): Add an overflow flag. Delete now unused + i, j, and tmp vars. Add a new v_i var. Split the overflow logic + out from the saturate logic. Do not set V ASTAT bits when working + with accumulators. + (decode_ALU2op_0): Add new argument to lshift call. + (decode_LOGI2op_0, decode_dsp32shift_0, decode_dsp32shiftimm_0): + Likewise. + 2012-03-18 Mike Frysinger * dv-bfin_ebiu_amc.c (struct bfin_ebiu_amc): Add bank_base. -- cgit v1.1