[PATCH] fix TLB handling for 8xx on linuxppc-2.5

Dan Malek dan at embeddededge.com
Thu Jun 3 01:13:28 EST 2004


On May 31, 2004, at 10:36 AM, Pantelis Antoniou wrote:
> +#define LAZY_DTLB_FIX			\
> +	rlwinm  r12,r10,0,23,25;	\
> +	cmpwi   r12,0xc0;		\
> +	bne+    0f;			\
> +	ori     r10,r10,0x100;		\
> +	b	1f;			\
> + 0:	cmpwi   r12,0x100;		\
> +	bne+    1f;			\
> +	rlwinm  r10,r10,0,24,22;	\
> + 1:
> +

This shouldn't be necessary.  The TLB handler manages dirty/used
flags already.  There is absolutely no need for testing/branching like
this in the TLB handlers.  Simply getting the exception and the flow
through the handler will imply the states that need to be cleared or
set.

I'll look into this further.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list