Commit be703177 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by Paul Mackerras

[POWERPC] spufs: Add bit definition

Add a bit define from book, and replace one hex number with a
symbol, for clarity.
Signed-off-by: default avatarSebastian Siewior <bigeasy@linux.vnet.ibm.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7a896dc5
...@@ -29,7 +29,8 @@ static inline int spu_stopped(struct spu_context *ctx, u32 * stat) ...@@ -29,7 +29,8 @@ static inline int spu_stopped(struct spu_context *ctx, u32 * stat)
spu = ctx->spu; spu = ctx->spu;
pte_fault = spu->dsisr & pte_fault = spu->dsisr &
(MFC_DSISR_PTE_NOT_FOUND | MFC_DSISR_ACCESS_DENIED); (MFC_DSISR_PTE_NOT_FOUND | MFC_DSISR_ACCESS_DENIED);
return (!(*stat & 0x1) || pte_fault || spu->class_0_pending) ? 1 : 0; return (!(*stat & SPU_STATUS_RUNNING) || pte_fault || spu->class_0_pending) ?
1 : 0;
} }
static int spu_setup_isolated(struct spu_context *ctx) static int spu_setup_isolated(struct spu_context *ctx)
......
...@@ -448,6 +448,7 @@ struct spu_priv1 { ...@@ -448,6 +448,7 @@ struct spu_priv1 {
#define MFC_STATE1_PROBLEM_STATE_MASK 0x08ull #define MFC_STATE1_PROBLEM_STATE_MASK 0x08ull
#define MFC_STATE1_RELOCATE_MASK 0x10ull #define MFC_STATE1_RELOCATE_MASK 0x10ull
#define MFC_STATE1_MASTER_RUN_CONTROL_MASK 0x20ull #define MFC_STATE1_MASTER_RUN_CONTROL_MASK 0x20ull
#define MFC_STATE1_TABLE_SEARCH_MASK 0x40ull
u64 mfc_lpid_RW; /* 0x008 */ u64 mfc_lpid_RW; /* 0x008 */
u64 spu_idr_RW; /* 0x010 */ u64 spu_idr_RW; /* 0x010 */
u64 mfc_vr_RO; /* 0x018 */ u64 mfc_vr_RO; /* 0x018 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment