| To: | Paul_Koning@Dell.com |
|---|---|
| Subject: | Re: [PATCH]: R10000 Needs LL/SC Workaround in Gcc |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Mon, 3 Nov 2008 17:35:22 +0000 |
| Cc: | macro@linux-mips.org, kumba@gentoo.org, gcc-patches@gcc.gnu.org, linux-mips@linux-mips.org, rdsandiford@googlemail.com |
| In-reply-to: | <B135486A342E6244AEE1EB13118903BA01A222DD@ausx3mpc106.aus.amer.dell.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <490A90F4.6040601@gentoo.org> <490C05A9.9070707@gentoo.org> <87abcjibsl.fsf@firetop.home> <490CA4C8.40904@gentoo.org> <87tzargrn4.fsf@firetop.home> <490CEDB9.6030600@gentoo.org> <alpine.LFD.1.10.0811021036330.20461@ftp.linux-mips.org> <B135486A342E6244AEE1EB13118903BA01A222DD@ausx3mpc106.aus.amer.dell.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
On Mon, Nov 03, 2008 at 10:51:49AM -0600, Paul_Koning@Dell.com wrote: > > I believe (but have not checked) that all CPUs/ISAs that are within the > >MIPS II - MIPS IV range enable -mbranch-likely by default, > > Not quite. sb1 has no-branch-likely. It actually does implement the > instruction but the documentation clearly states that it should be avoided. For the usual reasons - the CPU micro architects hate branch likely. It means having to cancel an instruction from the pipeline rather late, if the branch was not taken. So the deprecation just expresses the desparate wish of the CPU architects to get rid of the instruction. In practice that won't happen any time soon - we even still have useless crap like signed add and sub instructions in the MIPS ISA. And if the instructions actually were removed we still could software emulate them in the kernel. However unlike the R10000 the SB1 and SB1 implement full blown branch prediction for branch likely so use it where you can for performance. Ralf |
| Previous by Date: | possible dcache aliasing problems after do_swap_page(), Dmitry Adamushko |
|---|---|
| Next by Date: | Re: [PATCH]: R10000 Needs LL/SC Workaround in Gcc, Richard Sandiford |
| Previous by Thread: | RE: [PATCH]: R10000 Needs LL/SC Workaround in Gcc, Maciej W. Rozycki |
| Next by Thread: | Re: [PATCH]: R10000 Needs LL/SC Workaround in Gcc, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |