Mercurial > hg > truffle
diff graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotBackend.java @ 10792:7a8d6ba83a04
SPARC: fixes and more stuff works
author | twisti |
---|---|
date | Tue, 16 Jul 2013 17:41:21 -0700 |
parents | 31266ceb86ef |
children | e1fcdda22831 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotBackend.java Tue Jul 16 18:30:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotBackend.java Tue Jul 16 17:41:21 2013 -0700 @@ -85,9 +85,8 @@ if (SPARCAssembler.isSimm13(address.getDisplacement())) { new Stx(g0, address).emit(masm); } else { - // TODO Can't use g3 as scratch here. - new Setx(address.getDisplacement(), g3, g3).emit(masm); - new Stx(g0, sp, g3).emit(masm); + new Setx(address.getDisplacement(), g3).emit(masm); + new Stx(g0, new SPARCAddress(sp, g3)).emit(masm); } } }