| To: | Franck <vagabon.xyz@gmail.com> |
|---|---|
| Subject: | Re: [RFC] Optimize swab operations on mips_r2 cpu |
| From: | "Kevin D. Kissell" <kevink@mips.com> |
| Date: | Wed, 25 Jan 2006 15:11:49 +0100 |
| Cc: | Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org |
| In-reply-to: | <cda58cb80601250534r5f464fd1v@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cda58cb80601250136p5ee350e6g@mail.gmail.com> <20060125124738.GA3454@linux-mips.org> <cda58cb80601250534r5f464fd1v@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Thunderbird 1.5 (X11/20051025) |
Franck wrote: Hi Ralf 2006/1/25, Ralf Baechle <ralf@linux-mips.org>: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> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC] Optimize swab operations on mips_r2 cpu, Franck |
|---|---|
| Next by Date: | Re: [RFC] Optimize swab operations on mips_r2 cpu, Ralf Baechle |
| Previous by Thread: | Re: [RFC] Optimize swab operations on mips_r2 cpu, Franck |
| Next by Thread: | Re: [RFC] Optimize swab operations on mips_r2 cpu, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |