bugfix for jumpable delay slot
[nestedvm.git] / 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());