From: brian Date: Thu, 27 May 2004 14:26:06 +0000 (-0700) Subject: use option unixruntime for runtime compiler X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=3142b3bb94901c5826881bf7c79fbaf91709dcf5;ds=sidebyside use option unixruntime for runtime compiler darcs-hash:20040527142606-24bed-f44ab0d6510ab1acbca1cf86cc105ea0e122aa63.gz --- diff --git a/src/org/ibex/nestedvm/RuntimeCompiler.java b/src/org/ibex/nestedvm/RuntimeCompiler.java index 3252242..0160b7a 100644 --- a/src/org/ibex/nestedvm/RuntimeCompiler.java +++ b/src/org/ibex/nestedvm/RuntimeCompiler.java @@ -50,7 +50,7 @@ public class RuntimeCompiler { System.err.println("Usage: RuntimeCompiler mipsbinary"); System.exit(1); } - UnixRuntime r = (UnixRuntime) compile(new Seekable.File(args[0])).newInstance(); + UnixRuntime r = (UnixRuntime) compile(new Seekable.File(args[0]),"unixruntime").newInstance(); System.err.println("Instansiated: "+ r); System.exit(UnixRuntime.runAndExec(r,args)); } diff --git a/src/org/ibex/nestedvm/UnixRuntime.java b/src/org/ibex/nestedvm/UnixRuntime.java index 728d9cd..bee9c24 100644 --- a/src/org/ibex/nestedvm/UnixRuntime.java +++ b/src/org/ibex/nestedvm/UnixRuntime.java @@ -1120,7 +1120,7 @@ public abstract class UnixRuntime extends Runtime implements Cloneable { // its an elf binary try { s.seek(0); - Class c = RuntimeCompiler.compile(s); + Class c = RuntimeCompiler.compile(s,"unixruntime"); //System.err.println("Compile succeeded: " + c); ent = new CacheEnt(mtime,size,c); } catch(Compiler.Exn e) {