浏览代码

[POWERPC] spufs: Fix libassist accounting

We're currently too permissive with counting libassist calls - fix the
check on the SPE stop-and-signal status.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Jeremy Kerr 18 年之前
父节点
当前提交
08c9692b16
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/platforms/cell/spufs/run.c

+ 1 - 1
arch/powerpc/platforms/cell/spufs/run.c

@@ -352,7 +352,7 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx,
 				       SPU_STATUS_SINGLE_STEP)));
 				       SPU_STATUS_SINGLE_STEP)));
 
 
 	if ((status & SPU_STATUS_STOPPED_BY_STOP) &&
 	if ((status & SPU_STATUS_STOPPED_BY_STOP) &&
-	    ((status >> SPU_STOP_STATUS_SHIFT) & 0x2100))
+	    (((status >> SPU_STOP_STATUS_SHIFT) & 0x3f00) == 0x2100))
 		ctx->stats.libassist++;
 		ctx->stats.libassist++;
 
 
 	ctx->ops->master_stop(ctx);
 	ctx->ops->master_stop(ctx);