From: brian Date: Fri, 28 May 2004 16:42:01 +0000 (-0700) Subject: bugfix for jumpable delay slot X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=e92c05246edb4f4001de61d3ad0bf76e75787ba0 bugfix for jumpable delay slot darcs-hash:20040528164201-24bed-5e55bcd6a03ad43e0e7300e932f42b167357a7f0.gz --- diff --git a/src/org/ibex/nestedvm/ClassFileCompiler.java b/src/org/ibex/nestedvm/ClassFileCompiler.java index 64269fb..0cb9888 100644 --- a/src/org/ibex/nestedvm/ClassFileCompiler.java +++ b/src/org/ibex/nestedvm/ClassFileCompiler.java @@ -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());