https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83308

--- Comment #14 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to John Paul Adrian Glaubitz from comment #13)
> Cacheline size is 32 bytes according to the documentation:
> 
> > www.st.com/resource/en/user_manual/cd00147165.pdf (page 75)

Cache line sizes of original SH implementations:

SH2,SH2A,SH3: 16 bytes
SH4, SH4A: 32 bytes

> 
> PC quantum should be 2 bytes as SH uses a 16-bit instruction encoding.
> 

SH2A and SH-DSP have actually 4 byte instructions.  There are also some late
SH4A variants which can do 16-bit prefixes, resulting in 4 byte instructions.

Other (newer) SH implementations might deviate from the originals and use
multiple-length instructions or different cache line sizes.

But I don't think that matters a lot.  E.g. 68K has variable length
instructions and GOARCH_PCQUANTUM=4.  Not sure how much the cache line size is
of an importance for libgo ...


> No idea about GOARCH_MINFRAMESIZE though.
> 
> Patch submitted here:
> https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01111.html

That looks OK. On SH the minimum stack pointer alignment is 4.

Reply via email to