X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FCompiler.java;h=03515ad63e3f52aec0e60a374b002ef075459e7c;hb=67c7e733423baf297e3a6684eed50af00e2c8255;hp=c16a18f27b9da7e612a955f2bb4c4361d7a6d547;hpb=b7956688249a89b71e4873cdff862631e4b3704a;p=nestedvm.git diff --git a/src/org/ibex/nestedvm/Compiler.java b/src/org/ibex/nestedvm/Compiler.java index c16a18f..03515ad 100644 --- a/src/org/ibex/nestedvm/Compiler.java +++ b/src/org/ibex/nestedvm/Compiler.java @@ -1,4 +1,6 @@ -// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL] +// 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 org.ibex.nestedvm; @@ -192,9 +194,9 @@ public abstract class Compiler implements Registers { this.fullClassName = fullClassName; elf = new ELF(binary); - 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"); } abstract void _go() throws Exn, IOException; @@ -249,7 +251,7 @@ public abstract class Compiler implements Registers { for(int i=0;i