]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] spufs: fix post-stopped update of MFC_CNTL register
authorJeremy Kerr <jk@ozlabs.org>
Thu, 24 Apr 2008 08:15:40 +0000 (18:15 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 5 May 2008 03:33:42 +0000 (13:33 +1000)
commit55d7cd74d44e7e0597f95db25c12f3e6c5e7916f
tree1a0d468ad5fccb3033d0b57435efcdfa93b2bd78
parent1ca4264ee17745779c341966c5e61ac69bfd17a6
[POWERPC] spufs: fix post-stopped update of MFC_CNTL register

We currently have two issues with the MFC save code:

 * save_mfc_decr doesn't handle a transition of 1 -> 0 of the Ds bit
 * The Q bit may be stale in the CSA

This change fixes the first issue by clearing the relevant bits from
the MFC_CNTL value in the CSA before or-ing in the updated status.
Also, we add the Q bit to the updated status.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/switch.c