X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FRuntime.java;h=a54fbc20e785ee8ce45955888ed57f085499a468;hp=88c18b517f09b299d151e8924e1ebbbda1f159f8;hb=095d6d46361db8b4b69790305c0310ea114d3813;hpb=b7956688249a89b71e4873cdff862631e4b3704a diff --git a/src/org/ibex/nestedvm/Runtime.java b/src/org/ibex/nestedvm/Runtime.java index 88c18b5..a54fbc2 100644 --- a/src/org/ibex/nestedvm/Runtime.java +++ b/src/org/ibex/nestedvm/Runtime.java @@ -158,7 +158,7 @@ public abstract class Runtime implements UsermodeConstants,Registers,Cloneable { } } - InputStream stdin = Boolean.valueOf(getSystemProperty("nestedvm.textstdin")).booleanValue() ? new TextInputStream(System.in) : System.in; + InputStream stdin = Boolean.valueOf(Platform.getProperty("nestedvm.textstdin")).booleanValue() ? new TextInputStream(System.in) : System.in; addFD(new TerminalFD(stdin)); addFD(new TerminalFD(System.out)); addFD(new TerminalFD(System.err)); @@ -1393,14 +1393,6 @@ public abstract class Runtime implements UsermodeConstants,Registers,Cloneable { return _byteBuf; } - static String getSystemProperty(String key) { - try { - return System.getProperty(key); - } catch(SecurityException e) { - return null; - } - } - /** Decode a packed string */ protected static final int[] decodeData(String s, int words) { if(s.length() % 8 != 0) throw new IllegalArgumentException("string length must be a multiple of 8");