RFA: MIPS TLS support
Daniel Jacobowitz
drow@false.org
Wed Mar 9 18:29:00 GMT 2005
On Wed, Mar 09, 2005 at 01:27:11PM -0500, Daniel Jacobowitz wrote:
> This patch adds TLS support for MIPS. I don't have a whole lot to say about
> it, except that the MIPS backend symbol classification bits are really neat,
> and the mode macros in the md file are also really neat.
>
> The TLS ABI defines the thread pointer access instruction as "rdhwr $3,
> $29". It has to be that particular instruction, because a fast-path
> emulation is much more efficient when the destination register is fixed.
> So I needed to introduce a new register class for $v1; thank you, Ian,
> for sanity checking me while I worked out the reason I couldn't hard code
> (reg:P 3) in the instruction. [Reload won't bother this, but the RTL loop
> optimizer will.]
>
> OK for 4.1?
Forgot to mention: tested on mips-linux, using head binutils and a
patched kernel and glibc. Both GCC and NPTL test results look good.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gcc-patches
mailing list