use option unixruntime for runtime compiler
authorbrian <brian@brianweb.net>
Thu, 27 May 2004 14:26:06 +0000 (07:26 -0700)
committerbrian <brian@brianweb.net>
Thu, 27 May 2004 14:26:06 +0000 (07:26 -0700)
darcs-hash:20040527142606-24bed-f44ab0d6510ab1acbca1cf86cc105ea0e122aa63.gz

src/org/ibex/nestedvm/RuntimeCompiler.java
src/org/ibex/nestedvm/UnixRuntime.java

index 3252242..0160b7a 100644 (file)
@@ -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));
     }
index 728d9cd..bee9c24 100644 (file)
@@ -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) {