linux-mips
[Top] [All Lists]

Re: [PATCH] Avoid potential hazard on Context register

To: Chris Dearman <chris@mips.com>
Subject: Re: [PATCH] Avoid potential hazard on Context register
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sun, 11 Oct 2009 15:39:12 +0200
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <4AD17619.1000201@mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4AD17619.1000201@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.19 (2009-01-05)
On Sat, Oct 10, 2009 at 11:07:21PM -0700, Chris Dearman wrote:

> set_saved_sp reads Context register. Avoid reading stale value from  
> earlier incomplete write

Which is executed fairly frequently.  So it'll be cheaper to fix the issue
in the writers.  Will post patch in a few minutes.

I'm curious, did you actually manage to trigger this one?  The time between
the instructions should be fairly long but then again the 34K has been
good for a few surprises!

  Ralf

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