bugfix for jumpable delay slot
authorbrian <brian@brianweb.net>
Fri, 28 May 2004 16:42:01 +0000 (09:42 -0700)
committerbrian <brian@brianweb.net>
Fri, 28 May 2004 16:42:01 +0000 (09:42 -0700)
darcs-hash:20040528164201-24bed-5e55bcd6a03ad43e0e7300e932f42b167357a7f0.gz

src/org/ibex/nestedvm/ClassFileCompiler.java

index 64269fb..0cb9888 100644 (file)
@@ -558,6 +558,7 @@ public class ClassFileCompiler extends Compiler implements CGConst  {
             // add another copy and jump over
             
             int b = mg.add(GOTO);
+            insnTargets[(pc+4-startOfMethod)/4].setTarget(mg.size());
             emitInstruction(-1,nextInsn,01); // delay slot
             mg.setArg(b,mg.size());