[Top] [All Lists]

Re: MIPS32 cache functions now using c-r4k?

To: Ralf Baechle <>
Subject: Re: MIPS32 cache functions now using c-r4k?
From: Jun Sun <>
Date: Wed, 16 Apr 2003 09:51:35 -0700
Cc: "Kevin D. Kissell" <>, Hartvig Ekner <>, Linux MIPS mailing list <>,
In-reply-to: <>; from on Wed, Apr 16, 2003 at 04:08:19PM +0200
Original-recipient: rfc822;
References: <> <00c401c30418$0d9d1370$10eca8c0@grendel> <>
User-agent: Mutt/1.2.5i
On Wed, Apr 16, 2003 at 04:08:19PM +0200, Ralf Baechle wrote:
> On Wed, Apr 16, 2003 at 02:59:30PM +0200, Kevin D. Kissell wrote:
> > The whole point of creating the generic MIPS32 MMU and cache
> > routines was to have something that would run on both 32-bit and
> > 64-bit processors.  Who decided to throw them away and abandon 
> > support for 32-bit-only CPUs other than the R3000, and why?
> Nobody did dump support for 32-bit only processors.
> The read behind all this was in part that the pile of c-*.c files had
> turned into some sort of barbed wire fence.  Code from c-r4k.c had been
> replicated several times - including hundreds (conservative estimate) of
> lines of dead code, plenty of bugs and lack of understanding how caches
> are working.  At the same time that meant there was no way the old code
> could have supported all available processor configurations on some
> platforms.

It is really a Good Thing(tm) to have a more uniformed cache routine
and actually an overall performance gain.  It makes the tree more maintainable
and that new abstraction enables us to accomodate any new wacky CPUs
if there dare to any. :)

This is a long overdue task.  And the first derailed c-* file really should
not be allowed at the first place. :)


<Prev in Thread] Current Thread [Next in Thread>