Re: MIPS Thread Local Storage Help Request

2014-04-28 Thread Joel Sherrill
On 4/28/2014 1:56 PM, Gedare Bloom wrote: > On Mon, Apr 28, 2014 at 2:47 PM, Joel Sherrill > wrote: >> Hi >> >> This is going to be interesting. MIPS TLS is broken because >> we don't have a trap handler for this. From GCC: >> >> ;; Thread-Local Storage >> >> ;; The TLS base pointer is accessed v

Re: MIPS Thread Local Storage Help Request

2014-04-28 Thread Gedare Bloom
On Mon, Apr 28, 2014 at 2:47 PM, Joel Sherrill wrote: > Hi > > This is going to be interesting. MIPS TLS is broken because > we don't have a trap handler for this. From GCC: > > ;; Thread-Local Storage > > ;; The TLS base pointer is accessed via "rdhwr $3, $29". No current > ;; MIPS architecture

Re: MIPS Thread Local Storage Help Request

2014-04-28 Thread Joel Sherrill
Gedare chatted me and said he didn't see the code in the linked assembly for rdhwr. It wasn't obvious and I should have added a bit of commentary. Look for CPULOCAL. The comments in the CVS log are what tie it to rdhwr and TLS. There may be an outer wrapper for this. I don't know. On 4/28/2014 1