X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FCompiler.java;h=ebdf29d30489739597e97acd33f4bf0edb58b482;hb=ba5f49b65c5b2586de9b03a14a7842da143f3031;hp=68d2dee97da005d1c3f5b61380b36c55e4ec6042;hpb=034a42fa65955289442614ef9914e5474fac62aa;p=nestedvm.git diff --git a/src/org/ibex/nestedvm/Compiler.java b/src/org/ibex/nestedvm/Compiler.java index 68d2dee..ebdf29d 100644 --- a/src/org/ibex/nestedvm/Compiler.java +++ b/src/org/ibex/nestedvm/Compiler.java @@ -50,8 +50,6 @@ public abstract class Compiler implements Registers { protected boolean assumeTailCalls = true; - protected boolean optimizedMemcpy = true; - // True to insert some code in the output to help diagnore compiler problems protected boolean debugCompiler = false; @@ -84,12 +82,6 @@ public abstract class Compiler implements Registers { while(pageSize>>>pageShift != 1) pageShift++; } - /** The address of the memcpy function in the binary (used for optimizedMemcpy) */ - protected int memcpy; - - /** The address of the memset function in the binary (used for optimizedMemcpy) */ - protected int memset; - /** A set of all addresses that can be jumped too (only available if pruneCases == true) */ protected Set jumpableAddresses; @@ -213,13 +205,6 @@ public abstract class Compiler implements Registers { if(symtab == null) throw new Exn("Binary has no symtab (did you strip it?)"); ELF.Symbol sym; - // Check for some functions we can override - sym = symtab.getGlobalSymbol("memcpy"); - memcpy = sym == null ? -1 : sym.addr; - - sym = symtab.getGlobalSymbol("memset"); - memset = sym == null ? -1 : sym.addr; - userInfo = symtab.getGlobalSymbol("user_info"); gp = symtab.getGlobalSymbol("_gp"); if(gp == null) throw new Exn("no _gp symbol (did you strip the binary?)");