projects
/
org.ibex.mail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
got IMAP compiling
[org.ibex.mail.git]
/
upstream
/
org.ibex.core
/
upstream
/
org.ibex.nestedvm
/
src
/
tests
/
MSPack.java
diff --git
a/upstream/org.ibex.core/upstream/org.ibex.nestedvm/src/tests/MSPack.java
b/upstream/org.ibex.core/upstream/org.ibex.nestedvm/src/tests/MSPack.java
index
198b7aa
..
c154703
100644
(file)
--- a/
upstream/org.ibex.core/upstream/org.ibex.nestedvm/src/tests/MSPack.java
+++ b/
upstream/org.ibex.core/upstream/org.ibex.nestedvm/src/tests/MSPack.java
@@
-1,6
+1,6
@@
package tests;
package tests;
-import org.xwt.mips.Runtime;
+import org.ibex.nestedvm.Runtime;
import java.io.*;
public class MSPack {
import java.io.*;
public class MSPack {
@@
-14,8
+14,12
@@
public class MSPack {
byte[] cab = InputStreamToByteArray.convert(cabIS);
try {
//Interpreter vm = new Interpreter("mspack.mips");
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");
int cabAddr = vm.sbrk(cab.length);
if(cabAddr < 0) throw new MSPackException("sbrk failed");