X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FJavaSourceCompiler.java;h=d231f944fde85959a3e0466e6d338ec8dbf6c806;hp=64a7d4d79ec695116497670bedc7d4a0947fb805;hb=b11e7c6c29f2b5f7b0828bf93eb741c4a30ec411;hpb=b5282b0a1a8ca5212c75623610be6d0483fd35bd diff --git a/src/org/ibex/nestedvm/JavaSourceCompiler.java b/src/org/ibex/nestedvm/JavaSourceCompiler.java index 64a7d4d..d231f94 100644 --- a/src/org/ibex/nestedvm/JavaSourceCompiler.java +++ b/src/org/ibex/nestedvm/JavaSourceCompiler.java @@ -1,5 +1,5 @@ // Copyright 2000-2005 the Contributors, as shown in the revision logs. -// Licensed under the Apache Public Source License 2.0 ("the License"). +// Licensed under the Apache License 2.0 ("the License"). // You may not use this file except in compliance with the License. package org.ibex.nestedvm; @@ -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;");