X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Ftests%2FMSPack.java;h=c0be99835c745f8279d806ac4e07b68692f0427a;hp=198b7aaa29f2e857aff290221e30d99f15bf7afa;hb=b11e7c6c29f2b5f7b0828bf93eb741c4a30ec411;hpb=3eb15f58ca0911489d7d9bdc0ac2c575d27a68d8 diff --git a/src/tests/MSPack.java b/src/tests/MSPack.java index 198b7aa..c0be998 100644 --- a/src/tests/MSPack.java +++ b/src/tests/MSPack.java @@ -1,6 +1,10 @@ +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache 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 { @@ -14,8 +18,12 @@ 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");