+2011-04-14 Mike Frysinger <vapier@gentoo.org>
+
+ * bfin-sim.c (decode_dsp32alu_0): Set DIS_ALGN_EXPT when handling
+ BYTEOP2P, BYTEOP3P, SAA, BYTEOP1P, BYTEOP16P, BYTEOP16M, BYTEPACK,
+ and BYTEUNPACK insns.
+
2011-04-11 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_sic.c (bfin_sic_port_event): New helper function.
tmp1 = ((((s1 >> 24) & 0xff) + ((s1 >> 16) & 0xff) +
((s0 >> 24) & 0xff) + ((s0 >> 16) & 0xff) + i) >> 2) & 0xff;
SET_DREG (dst0, (tmp1 << (16 + (HL * 8))) | (tmp0 << (HL * 8)));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if ((aop == 0 || aop == 1) && s == 0 && aopcde == 8)
{
tmp1 = (bs32)(bs16)(s0 >> 16) + ((s1 >> (16 + (8 * !HL))) & 0xff);
SET_DREG (dst0, (CLAMP (tmp0, 0, 255) << ( 0 + (8 * HL))) |
(CLAMP (tmp1, 0, 255) << (16 + (8 * HL))));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if ((aop == 0 || aop == 1) && aopcde == 16)
{
STORE (AXREG (0), 0);
STORE (AWREG (1), (s1H << 16) | (s1L & 0xFFFF));
STORE (AXREG (1), 0);
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aop == 3 && aopcde == 18)
{
(((((s0 >> 8) & 0xff) + ((s1 >> 8) & 0xff) + !aop) >> 1) << 8) |
(((((s0 >> 16) & 0xff) + ((s1 >> 16) & 0xff) + !aop) >> 1) << 16) |
(((((s0 >> 24) & 0xff) + ((s1 >> 24) & 0xff) + !aop) >> 1) << 24));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aop == 0 && aopcde == 21)
{
SET_DREG (dst1,
((((s0 >> 16) & 0xff) + ((s1 >> 16) & 0xff)) << 0) |
((((s0 >> 24) & 0xff) + ((s1 >> 24) & 0xff)) << 16));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aop == 1 && aopcde == 21)
{
SET_DREG (dst1,
(((((s0 >> 16) & 0xff) - ((s1 >> 16) & 0xff)) << 0) & 0xffff) |
(((((s0 >> 24) & 0xff) - ((s1 >> 24) & 0xff)) << 16)));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aop == 1 && aopcde == 7)
{
(((DREG (src0) >> 16) & 0xff) << 8) |
(((DREG (src1) >> 0) & 0xff) << 16) |
(((DREG (src1) >> 16) & 0xff) << 24));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aop == 1 && aopcde == 24)
{
byted = (comb_src >> (24 + 8 * order));
SET_DREG (dst0, bytea | ((bu32)byteb << 16));
SET_DREG (dst1, bytec | ((bu32)byted << 16));
+
+ /* Implicit DISALGNEXCPT in parallel. */
+ DIS_ALGN_EXPT |= 1;
}
else if (aopcde == 13)
{