X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FCompiler.java;fp=src%2Forg%2Fxwt%2Fmips%2FCompiler.java;h=de5a04802da8c4174e96345c5027a9b929731da5;hp=de457e76f68f0a85442e2cf6c41225304ca97455;hb=c2b2704764af1ade923ba8f15d517b87f9d16189;hpb=90f1aff73ed698ab5992fbd7eb53c1ba7329b1a5 diff --git a/src/org/xwt/mips/Compiler.java b/src/org/ibex/nestedvm/Compiler.java similarity index 98% rename from src/org/xwt/mips/Compiler.java rename to src/org/ibex/nestedvm/Compiler.java index de457e7..de5a048 100644 --- a/src/org/xwt/mips/Compiler.java +++ b/src/org/ibex/nestedvm/Compiler.java @@ -1,12 +1,11 @@ // Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL] -package org.xwt.mips; +package org.ibex.nestedvm; import java.util.*; import java.io.*; -import org.xwt.mips.util.SeekableData; -import org.xwt.mips.util.SeekableFile; +import org.ibex.nestedvm.util.*; public abstract class Compiler implements Registers { /** The ELF binary being read */ @@ -64,7 +63,7 @@ public abstract class Compiler implements Registers { protected boolean nullPointerCheck = false; - protected String runtimeClass = "org.xwt.mips.Runtime"; + protected String runtimeClass = "org.ibex.nestedvm.Runtime"; protected String hashClass = "java.util.Hashtable"; @@ -144,7 +143,7 @@ public abstract class Compiler implements Registers { } if(className == null || mipsBinaryFileName == null) usage(); - SeekableData mipsBinary = new SeekableFile(mipsBinaryFileName); + Seekable mipsBinary = new Seekable.File(mipsBinaryFileName); Writer w = null; OutputStream os = null; @@ -185,7 +184,7 @@ public abstract class Compiler implements Registers { } } - public Compiler(SeekableData binary, String fullClassName) throws IOException { + public Compiler(Seekable binary, String fullClassName) throws IOException { this.fullClassName = fullClassName; elf = new ELF(binary); @@ -249,7 +248,7 @@ public abstract class Compiler implements Registers { findBranchesInText(text.addr,new DataInputStream(text.getInputStream()),text.size,jumpableAddresses); } - if(unixRuntime && runtimeClass.startsWith("org.xwt.mips.")) runtimeClass = "org.xwt.mips.UnixRuntime"; + if(unixRuntime && runtimeClass.startsWith("org.ibex.nestedvm.")) runtimeClass = "org.ibex.nestedvm.UnixRuntime"; for(int i=0;i