From: brian Date: Sun, 17 Jun 2007 10:39:56 +0000 (-0700) Subject: fix the java source compiler X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=937f88333dca3f622bd9e2669e17e7473a447dd9 fix the java source compiler darcs-hash:20070617103956-24bed-46c55a51f8308e8ed5608c90f89598bdefe0a712.gz --- diff --git a/src/org/ibex/nestedvm/JavaSourceCompiler.java b/src/org/ibex/nestedvm/JavaSourceCompiler.java index 64a7d4d..fb6abe3 100644 --- a/src/org/ibex/nestedvm/JavaSourceCompiler.java +++ b/src/org/ibex/nestedvm/JavaSourceCompiler.java @@ -290,7 +290,7 @@ public class JavaSourceCompiler extends Compiler { insn = nextInsn; nextInsn = (i == count-1) ? -1 : dis.readInt(); if(addr >= endOfMethod) { endMethod(); startMethod(addr); } - if(jumpableAddresses==null || addr == startOfMethod || jumpableAddresses.contains(new Integer(addr))) { + if(jumpableAddresses==null || addr == startOfMethod || jumpableAddresses.get(new Integer(addr)) != null) { p("case " + toHex(addr) + ":"); unreachable = false; } else if(unreachable) { @@ -427,6 +427,7 @@ public class JavaSourceCompiler extends Compiler { break; case 13: // BREAK p( "throw new ExecutionException(\"Break\");"); + unreachable = true; break; case 16: // MFHI p( "r"+rd+" = hi;");