X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FJavaSourceCompiler.java;h=fb6abe32a5958d32ce51444a92d747cae1753690;hp=64a7d4d79ec695116497670bedc7d4a0947fb805;hb=937f88333dca3f622bd9e2669e17e7473a447dd9;hpb=00faa5231809fd956989e44e18c5284951876f01 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;");