Commit 3c5665d0 authored by Bruce Momjian's avatar Bruce Momjian

Add more sparcv8plus comments.

parent d6a35c81
......@@ -22,13 +22,13 @@ pg_atomic_cas:
! by a sparcv8 CPU. gcc continues to use "ldstub" because
! there is no indication which sparc version it is targeting.
!
! There actually is a trick for embedding "cas" for a compiler
! that is targeting sparcv8:
! It is actually possible to use "cas" for sparcv8 binaries if
! -xarch=v8plus is used for compilation. There is actually a
! trick for embedding "cas" in a sparcv8-targeted compiler, but
! it can only be run on a sparcv8plus cpus:
!
! http://cvs.opensolaris.org/source/xref/on/usr/src/lib/libc/sparc/threads/sparc.il
!
! It is actually possible to use "cas" for sparcv8 binaries if
! -xarch=v8plus is used for compilation.
#ifdef __sparcv9
cas [%o0],%o2,%o1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment