From 8eb5962b879977e1a7975f9077c9ac86859deb48 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 24 May 2004 21:51:47 -0700 Subject: [PATCH] more features darcs-hash:20040525045147-24bed-0769038d7ffd11546458d47552ad88529a63687d.gz --- src/org/ibex/nestedvm/ClassFileCompiler.java | 1 + src/org/ibex/nestedvm/UnixRuntime.java | 2 ++ 2 files changed, 3 insertions(+) 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); -- 1.7.10.4