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.