@@ -1,3 +1,9 @@
+2016-02-15 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * sysdeps/sparc/sparc64/memcpy.S: Restore the %asi register to
+ ASI_PRIMARY_NOFAULT before returning, as mandated by the SPARC
+ ABI.
+
2016-02-14 Carlos O'Donelll <carlos@redhat.com>
* manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
@@ -351,6 +351,7 @@ ENTRY(__memcpy_large)
stb %g5, [%o0 - 1] /* Store Group */
207: membar #StoreLoad | #StoreStore /* LSU Group */
wr %g0, FPRS_FEF, %fprs
+ wr %g0, ASI_PNF, %asi /* LSU Group */
retl
mov %g4, %o0
@@ -370,7 +371,8 @@ ENTRY(__memcpy_large)
stb %g5, [%o0 - 2] /* Store */
bne,pt %xcc, 2b /* CTI */
stb %o5, [%o0 - 1] /* Store */
-209: retl
+209: wr %g0, ASI_PNF, %asi /* LSU Group */
+ retl
mov %g4, %o0
END(__memcpy_large)