Mercurial > hg > graal-compiler
diff src/os_cpu/linux_sparc/vm/atomic_linux_sparc.inline.hpp @ 17940:7f77d17d0f13
8042059: Various fixes to linux/sparc
Reviewed-by: twisti, kvn
author | mikael |
---|---|
date | Tue, 29 Apr 2014 22:05:10 -0700 |
parents | 46c544b8fbfc |
children |
line wrap: on
line diff
--- a/src/os_cpu/linux_sparc/vm/atomic_linux_sparc.inline.hpp Tue Apr 29 22:04:09 2014 -0700 +++ b/src/os_cpu/linux_sparc/vm/atomic_linux_sparc.inline.hpp Tue Apr 29 22:05:10 2014 -0700 @@ -78,12 +78,12 @@ __asm__ volatile( "1: \n\t" " ldx [%2], %%o2\n\t" - " add %0, %%o2, %%o3\n\t" + " add %1, %%o2, %%o3\n\t" " casx [%2], %%o2, %%o3\n\t" " cmp %%o2, %%o3\n\t" " bne %%xcc, 1b\n\t" " nop\n\t" - " add %0, %%o2, %0\n\t" + " add %1, %%o2, %0\n\t" : "=r" (rv) : "r" (add_value), "r" (dest) : "memory", "o2", "o3");