From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
Subject: Re: [PATCH] TX49 MFC0 bug workaround
Date: Thu, 2 Feb 2006 16:56:56 +0000 [thread overview]
Message-ID: <20060202165656.GC17352@linux-mips.org> (raw)
In-Reply-To: <Pine.LNX.4.64N.0602021636380.11727@blysk.ds.pg.gda.pl>
On Thu, Feb 02, 2006 at 04:38:37PM +0000, Maciej W. Rozycki wrote:
> Date: Thu, 2 Feb 2006 16:38:37 +0000 (GMT)
> From: "Maciej W. Rozycki" <macro@linux-mips.org>
> To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
> Subject: Re: [PATCH] TX49 MFC0 bug workaround
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> On Fri, 3 Feb 2006, Atsushi Nemoto wrote:
>
> > Workaround: mask EXL bit of the result or place a nop before mfc0.
> [...]
> > @@ -55,8 +56,13 @@ __asm__ (
> > " di \n"
> > #else
> > " mfc0 $1,$12 \n"
> > +#if TX49XX_MFC0_WAR && defined(MODULE)
> > + " ori $1,3 \n"
> > + " xori $1,3 \n"
> > +#else
> > " ori $1,1 \n"
> > " xori $1,1 \n"
> > +#endif
> > " .set noreorder \n"
> > " mtc0 $1,$12 \n"
> > #endif
>
> Hmm, wouldn't that "nop" alternative be simpler?
Simpler maybe - but this variant has zero runtime overhead.
Ralf
next prev parent reply other threads:[~2006-02-02 16:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 16:34 [PATCH] TX49 MFC0 bug workaround Atsushi Nemoto
2006-02-02 16:38 ` Maciej W. Rozycki
2006-02-02 16:56 ` Ralf Baechle [this message]
2006-02-02 17:04 ` Atsushi Nemoto
2006-02-02 17:21 ` Atsushi Nemoto
2006-02-02 17:24 ` Ralf Baechle
2006-02-03 2:10 ` Atsushi Nemoto
2006-02-03 10:17 ` Maciej W. Rozycki
2006-02-03 14:44 ` Ralf Baechle
2006-02-06 9:36 ` Atsushi Nemoto
2006-02-06 23:22 ` Ralf Baechle
2006-02-03 2:26 ` Sergei Shtylylov
2006-02-03 2:50 ` Atsushi Nemoto
2006-02-02 16:46 ` Ralf Baechle
2006-02-02 18:46 ` Sergei Shtylylov
2006-02-02 22:11 ` Ralf Baechle
2006-02-03 1:17 ` Atsushi Nemoto
2006-02-03 2:12 ` Sergei Shtylylov
2006-02-03 2:22 ` Atsushi Nemoto
2006-02-07 15:32 ` Sergei Shtylylov
2006-02-07 15:32 ` Sergei Shtylylov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060202165656.GC17352@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.org \
--cc=macro@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox