2011-09-06 10:41:16     uclibc and anomalies

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-09-06 10:41:16     uclibc and anomalies

Thorsten Pohlmann (GERMANY)

Message: 103308   

 

Hi!

 

I searched the doc pages but i did not find any hint... Sorry if faq or rtfm, but i searched all afternoon...

 

If you have a blackfin board, you of course have a specific processor with a specific build-mask and so with specific hardware anomalies.

 

I understood that i can (i would even say must?) tell the compiler the type and mask via mcpu=, so the proper workarounds can be applied. If i don't set this switch, no workarounds are made at all?! -> flaky result?!

 

If i look at the procompiled uClibc-tree (at least in the 2009 version), i see

 

bfin-linux-uclibc/runtime/bf532-none/lib

 

and a "unspecified"

 

bfin-linux-uclibc/runtime/lib

 

not more.

 

So, which libraries do i have to take for a bf537-0.3? Has the "unspecified" lib been built with all workarounds, or none, or which? Or do i have to rebuild the uclibc for my processor? (Which i never managed, tons of errors...)

 

Regards, Thorsten

TranslateQuoteReplyEditDelete

 

 

2011-09-06 11:20:01     Re: uclibc and anomalies

Stuart Henderson (UNITED KINGDOM)

Message: 103309   

 

Hi Thorsten,

not specifying a cpu should enable all workarounds by default.  which is what should be in the "unspecified" runtime libraries that you mention.

e.g.

shender ~/t> cat wa.c

#if __WORKAROUNDS_ENABLED

#warning __WORKAROUNDS_ENABLED

#endif

 

#if __WORKAROUND_SPECULATIVE_LOADS

#warning __WORKAROUND_SPECULATIVE_LOADS

#endif

 

#if __WORKAROUND_INDIRECT_CALLS

#warning __WORKAROUND_INDIRECT_CALLS

#endif

shender ~/t> bfin-uclinux-gcc wa.c -S -mcpu=bf533-0.3

wa.c:2:2: warning: #warning __WORKAROUNDS_ENABLED

wa.c:6:2: warning: #warning __WORKAROUND_SPECULATIVE_LOADS

shender ~/t> bfin-uclinux-gcc wa.c -S -mcpu=bf533-none

shender ~/t> bfin-uclinux-gcc wa.c -S

wa.c:2:2: warning: #warning __WORKAROUNDS_ENABLED

wa.c:6:2: warning: #warning __WORKAROUND_SPECULATIVE_LOADS

wa.c:10:2: warning: #warning __WORKAROUND_INDIRECT_CALLS

 

Are you seeing different behaviour?

 

Stu

QuoteReplyEditDelete

 

 

2011-09-07 04:03:03     Re: uclibc and anomalies

Thorsten Pohlmann (GERMANY)

Message: 103317   

 

Hi!

 

No, we get the same results.

 

Thanks for the information!

 

 

 

regards, Thorsten

Attachments

    Outcomes