X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FInterpreter.java;h=b6b34240aa28e534df2c6ae7f314dccce8225dd3;hb=c690989b7973d1a2e5aed45afe51f782f064a127;hp=df9a11114545a24b1be7fa8f82337cca9451af88;hpb=896193619af1e0534356ac622494ae77c7e42594;p=nestedvm.git diff --git a/src/org/ibex/nestedvm/Interpreter.java b/src/org/ibex/nestedvm/Interpreter.java index df9a111..b6b3424 100644 --- a/src/org/ibex/nestedvm/Interpreter.java +++ b/src/org/ibex/nestedvm/Interpreter.java @@ -1,3 +1,7 @@ +// 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. + // Copyright 2003 Brian Alliet // Based on org.xwt.imp.MIPS by Adam Megacz // Portions Copyright 2003 Adam Megacz @@ -665,9 +669,9 @@ public class Interpreter extends UnixRuntime implements Cloneable { ELF elf = new ELF(data); symtab = elf.getSymtab(); - if(elf.header.type != ELF.ELFHeader.ET_EXEC) throw new IOException("Binary is not an executable"); - if(elf.header.machine != ELF.ELFHeader.EM_MIPS) throw new IOException("Binary is not for the MIPS I Architecture"); - if(elf.ident.data != ELF.ELFIdent.ELFDATA2MSB) throw new IOException("Binary is not big endian"); + if(elf.header.type != ELF.ET_EXEC) throw new IOException("Binary is not an executable"); + if(elf.header.machine != ELF.EM_MIPS) throw new IOException("Binary is not for the MIPS I Architecture"); + if(elf.ident.data != ELF.ELFDATA2MSB) throw new IOException("Binary is not big endian"); entryPoint = elf.header.entry; @@ -687,7 +691,7 @@ public class Interpreter extends UnixRuntime implements Cloneable { int pageWords = (1<> 2; for(int i=0;i