PowerPC lwsync Instruction

Joel Sherrill joel.sherrill@oarcorp.com
Thu Jun 19 17:37:00 GMT 2008


Hi,

I ran into something tracking down a test
failure on psim and now thing there is a
target specific issue that needs addressing.

libstdc++-v3/config/cpu/powerpc/atomic_word.h
uses the lwsync instruction if __NO_LWSYNC__
is not defined. 

psim does not implement the lwsync instruction.
I checked my 601, 603, and 403 manuals and did
not find this instruction in any of them.

I think the powerpc port is enabling this instruction
on variants that don't have it.  Which PowerPC
cores have this instruction?

It should be fairly straightforward to address since
it is just a matter of setting the __NO_LWSYNC__
macro correctly for each CPU variant.

Thanks.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985




More information about the Gcc mailing list