X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FJavaSourceCompiler.java;h=499b2187b2b4f3ea776f64118a1959dd195460a3;hb=f4a70cc5b4dc1a175ba741a4eac3a52985b1b322;hp=f7f2353c047ff0382f70b37b7e2a0acadccdfe0f;hpb=3efa407f6606052b91cec5c98fab3f0a0a733b37;p=nestedvm.git diff --git a/src/org/ibex/nestedvm/JavaSourceCompiler.java b/src/org/ibex/nestedvm/JavaSourceCompiler.java index f7f2353..499b218 100644 --- a/src/org/ibex/nestedvm/JavaSourceCompiler.java +++ b/src/org/ibex/nestedvm/JavaSourceCompiler.java @@ -217,7 +217,7 @@ public class JavaSourceCompiler extends Compiler { private void endMethod() { endMethod(endOfMethod); } private void endMethod(int lastAddr) { if(startOfMethod == 0) return; - // FEATURE: We should be able to use if(!unreachable) here (i think) + // We should be able to use if(!unreachable) here (i think) // This isn't strictly necessary; its just here to work around unreachable code errors p("case " + toHex(lastAddr) + ":"); indent++; @@ -412,7 +412,7 @@ public class JavaSourceCompiler extends Compiler { break; case 12: // SYSCALL p("pc = " + toHex(pc) + ";"); - p( "r"+V0+" = syscall(r"+V0+",r"+A0+",r"+A1+",r"+A2+",r"+A3+");"); + p( "r"+V0+" = syscall(r"+V0+",r"+A0+",r"+A1+",r"+A2+",r"+A3+",r"+T0+",r"+T1+");"); p("if (state != RUNNING) {"); indent++; p("pc = " + toHex(pc+4) + ";");