[rtems commit] sparc: fix bad register alignment for 64 bit store

Daniel Hellstrom danielh at rtems.org
Thu Mar 11 16:51:34 UTC 2021


Module:    rtems
Branch:    master
Commit:    1d804cbcd4eea74ad46d692489d4cb849a250d50
Changeset: http://git.rtems.org/rtems/commit/?id=1d804cbcd4eea74ad46d692489d4cb849a250d50

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Thu Nov 14 10:26:21 2019 +0100

sparc: fix bad register alignment for 64 bit store

---

 cpukit/score/cpu/sparc/sparc-access.S | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/sparc/sparc-access.S b/cpukit/score/cpu/sparc/sparc-access.S
index 9397cb8..277fb7e 100644
--- a/cpukit/score/cpu/sparc/sparc-access.S
+++ b/cpukit/score/cpu/sparc/sparc-access.S
@@ -80,7 +80,9 @@ SYM(_st32):
 
 SYM(_st_be64):
 SYM(_st64):
-	std %o1, [%o0]
+	mov %o2, %o3
+	mov %o1, %o2
+	std %o2, [%o0]
 	retl
 	 nop
 



More information about the vc mailing list