+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
package tests;
-import org.xwt.mips.Runtime;
+import org.ibex.nestedvm.Runtime;
import java.io.*;
public class MSPack {
byte[] cab = InputStreamToByteArray.convert(cabIS);
try {
//Interpreter vm = new Interpreter("mspack.mips");
- MSPackHelper vm = new MSPackHelper();
-
+ Runtime vm;
+ try {
+ vm = (Runtime) Class.forName("tests.MSPackHelper").newInstance();
+ } catch(Exception e) {
+ throw new MSPackException("couldn't instansiate MSPackHelper");
+ }
int cabAddr = vm.sbrk(cab.length);
if(cabAddr < 0) throw new MSPackException("sbrk failed");