This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54760] [SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Oct 2012 00:26:42 +0000
- Subject: [Bug target/54760] [SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer
- Auto-submitted: auto-generated
- References: <bug-54760-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54760
--- Comment #7 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-10-12 00:26:42 UTC ---
(In reply to comment #6)
> (In reply to comment #5)
> > Kaz, do you happen to know something regarding this matter?
>
> My SH4 software manual says for STC that all stc/stc.l instructions
> except stc gbr,rn/stc gbr,@-rn are privileged instructions which
> might cause an illegal exception in user mode. LDC has a similar
> remark.
Yes, but e.g. in the manual rej09b0003_sh4a.pdf, pdf page 346 (STC insn), in
addition to the gbr user/privileged mode note:
Possible Exceptions:
* Data TLB multiple-hit exception
* General illegal instruction exception
* Slot illegal instruction exception <<< but which insns?!?!
* Data TLB miss exception
* Data TLB protection violation exception
* Initial page write exception
* Data address error
I'd like to leave this open until this has been clarified/confirmed.