/* Given the contents of the status register and the DCPLB_DATA contents, return true if a write access should be permitted.  */
static int write_permitted(int status, unsigned long data)
/* Given the contents of the status register and the DCPLB_DATA contents, return true if a write access should be permitted.  */
static int write_permitted(int status, unsigned long data)
{
	if (status & FAULT_USERSUPV)
		return !!(data & CPLB_SUPV_WR);
	else
		return !!(data & CPLB_USER_WR);
}