linux-mips
[Top] [All Lists]

Re: [PATCH] Synthesize TLB refill handler at runtime

To: Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH] Synthesize TLB refill handler at runtime
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sun, 21 Nov 2004 21:43:00 +0100
Cc: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>, Linux/MIPS Development <linux-mips@linux-mips.org>
In-reply-to: <Pine.GSO.4.61.0411212048520.26374@waterleaf.sonytel.be>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20041121170242.GR20986@rembrandt.csv.ica.uni-stuttgart.de> <Pine.GSO.4.61.0411212048520.26374@waterleaf.sonytel.be>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Sun, Nov 21, 2004 at 08:50:30PM +0100, Geert Uytterhoeven wrote:

> On Sun, 21 Nov 2004, Thiemo Seufer wrote:
> > currently we have a large number of TLB refill handlers written in
> > hand-optimized assembly which are mostly indentical. The appended
> > patch removes them all, and adds a micro-assembler instead which
> > synthesizes the proper variant for the CPU at runtime.
> 
> Woow.....

This has been the plan for quite a while already.  Nowhere else than in
the TLB exception handler more details about exception handling,
pipeline structure, SMP etc. become visible and benchmarkable in that
few instructions.  Copy_page / clear_page have basically been a test
how well it'd work out - it did.  So from that point it was just a
question of who was going to bite the bullet and do the work and Thiemo
did.  Thanks!

  Ralf

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