[Top] [All Lists]

Re: [RFC] Optimize swab operations on mips_r2 cpu

To: Franck <>
Subject: Re: [RFC] Optimize swab operations on mips_r2 cpu
From: "Kevin D. Kissell" <>
Date: Wed, 25 Jan 2006 15:11:49 +0100
Cc: Ralf Baechle <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Thunderbird 1.5 (X11/20051025)
Franck wrote:
Hi Ralf

2006/1/25, Ralf Baechle <>:
On Wed, Jan 25, 2006 at 10:36:46AM +0100, Franck wrote:

Here is a little patch to optimize swab operations by using "wsbh"
instruction available on mips revision 2 cpus. I do not know what
condition I should use to compile this only for mips r2 cpu though.

Comments ?
Looks good aside of the one issue you've already raised yourself:

+/* FIXME: MIPS_R2 only */

I was actually asking for advices :)

I can see only two simple ways to do that:
(a) we can define a couple of new macro ie CONFIG_MIPS32_ISET_R[12]
that can be set depending on the selected CPU;
(b) define a new macro CONFIG_CPU_HAS_WSBH;

Don't we already have CONFIG_CPU_MIPS32R2?

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