This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PowerPC lwsync Instruction
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: GCC List <gcc at gcc dot gnu dot org>
- Date: Thu, 19 Jun 2008 12:36:53 -0500
- Subject: PowerPC lwsync Instruction
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