Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756692Ab1CHVaO (ORCPT ); Tue, 8 Mar 2011 16:30:14 -0500 Received: from gate.crashing.org ([63.228.1.57]:45088 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755777Ab1CHVaK (ORCPT ); Tue, 8 Mar 2011 16:30:10 -0500 Subject: Re: RFC: x86: kill binutils 2.16.x? From: Benjamin Herrenschmidt To: Kyle Moffett Cc: Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , linux-kbuild , Linux Kernel Mailing List , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Kyle Moffett , Kumar Gala In-Reply-To: References: <4D6E8932.1010405@zytor.com> <4D6EB07C.5040004@zytor.com> <4D6ECBDB.6090307@zytor.com> <20110303083035.GB14854@elte.hu> Content-Type: text/plain; charset="UTF-8" Date: Wed, 09 Mar 2011 08:28:36 +1100 Message-ID: <1299619716.22236.32.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1406 Lines: 33 On Tue, 2011-03-08 at 14:57 -0500, Kyle Moffett wrote: > > Specifically the e500 doesn't have a normal PowerPC FPU, it has a > custom FPU built using extended integer registers instead, and it > happens to borrow the AltiVec opcode range to do it. > > When trying to port Debian to the platform we were getting SIGILL's > all over the place until binutils got updated to reject all of the > unsupported opcodes on this particular platform. Now of course we get > build errors, but that's a lot easier to debug and fix. :-D > > Basically, binutils no longer supports "-many" (because too many > opcodes conflict), and the test itself would fail anyways (because > "dssall" is not valid on "any" PowerPC). Note that this freescale "SPE" fiasco is just that ... a fiasco :-) I don't think there's that many cases of opcode overlap outside of it. Now regarding the kernel, the best is probably for nasty cases like that to use hand coded opcodes (see ppc-opcodes.h) and stick to a more "generic" setting for binutils, since it should be possible to build kernels that support multiple types of BookE CPUs with different floating point units. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/