From e92c05246edb4f4001de61d3ad0bf76e75787ba0 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 28 May 2004 09:42:01 -0700 Subject: [PATCH] bugfix for jumpable delay slot darcs-hash:20040528164201-24bed-5e55bcd6a03ad43e0e7300e932f42b167357a7f0.gz --- src/org/ibex/nestedvm/ClassFileCompiler.java | 1 + 1 file changed, 1 insertion(+) 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()); -- 1.7.10.4