From: brian Date: Tue, 25 May 2004 04:51:47 +0000 (-0700) Subject: more features X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8eb5962b879977e1a7975f9077c9ac86859deb48;p=nestedvm.git more features darcs-hash:20040525045147-24bed-0769038d7ffd11546458d47552ad88529a63687d.gz --- diff --git a/src/org/ibex/nestedvm/ClassFileCompiler.java b/src/org/ibex/nestedvm/ClassFileCompiler.java index 2f5b609..2dec150 100644 --- a/src/org/ibex/nestedvm/ClassFileCompiler.java +++ b/src/org/ibex/nestedvm/ClassFileCompiler.java @@ -7,6 +7,7 @@ import org.ibex.nestedvm.util.*; import org.apache.bcel.generic.*; +// FEATURE: Use IINC where possible // FEATURE: Use BCEL to do peephole optimization // FEATURE: Special mode to support single-precision only - regs are floats not ints diff --git a/src/org/ibex/nestedvm/UnixRuntime.java b/src/org/ibex/nestedvm/UnixRuntime.java index 491a486..b4f651d 100644 --- a/src/org/ibex/nestedvm/UnixRuntime.java +++ b/src/org/ibex/nestedvm/UnixRuntime.java @@ -1051,6 +1051,7 @@ public abstract class UnixRuntime extends Runtime implements Cloneable { mps = newMPS; } + // FEATURE: We shouldn't need to special case the root dir, it should work in the MP array private Object fsop(int op, UnixRuntime r, String normalizedPath, int arg1, int arg2) throws ErrnoException { int pl = normalizedPath.length(); if(pl != 0) { @@ -1066,6 +1067,7 @@ public abstract class UnixRuntime extends Runtime implements Cloneable { return dispatch(root,op,r,normalizedPath,arg1,arg2); } + // FEATURE: move this into FS so some filesystem can override it directly (devfs) private static Object dispatch(FS fs, int op, UnixRuntime r, String path, int arg1, int arg2) throws ErrnoException { switch(op) { case OPEN: return fs.open(r,path,arg1,arg2);