Hi Nate,

As you can see, I've just sent out 3 new patches. These should fix the  
problems that were occurring below. I've compiled with gcc 4.3 and fixed  
the errors it was throwing up, added the correct ioctl code to the ISAs  
that needed it and recompiled all binaries you've listed below. I also  
reran the Hello World regression test for PowerPC. All should be working  
now but please tell me if not.

Thanks
Tim

On Fri, 16 Oct 2009 00:01:10 +0100, nathan binkert <n...@binkert.org>  
wrote:

> I'm trying to compile absolutely everything right now (all
> combinations of ISA and emulation).
> I've listed below everything that should be on your scons command
> line.  (You should at least do this once)  It's not strictly necessary
> that you do all of debug, opt, and fast, but you at least need to
>
> This patch breaks all but ppc because you only added TCSETAW_ to
> powerpc and not the other ISAs, but you use it in the generic
> sim/syscall_emul.hh.  Can you figure out what the correct ioctl values
> are for the other ISAs?  Otherwise, we have to jump through more hoops
> to get ioctl stuff to work.
>
> Also, can you please try to compile with gcc 4.3?  There are a lot of
> errors that it finds that earlier compilers don't (some are real
> errors in your code).  Some of the warnings that are turned on are a
> bit pedanitic, but I've found real bugs with them, so I think it's
> worth it.  (I found some real bugs in your code too).
>
>   Nate
>
> build/ALPHA_FS/m5.debug
> build/ALPHA_SE/m5.debug
> build/ARM_SE/m5.debug
> build/MIPS_SE/m5.debug
> build/POWERPC_SE/m5.debug
> build/SPARC_FS/m5.debug
> build/SPARC_SE/m5.debug
> build/X86_FS/m5.debug
> build/X86_SE/m5.debug
> build/ALPHA_FS/m5.opt
> build/ALPHA_SE/m5.opt
> build/ARM_SE/m5.opt
> build/MIPS_SE/m5.opt
> build/POWERPC_SE/m5.opt
> build/SPARC_FS/m5.opt
> build/SPARC_SE/m5.opt
> build/X86_FS/m5.opt
> build/X86_SE/m5.opt
> build/ALPHA_FS/m5.fast
> build/ALPHA_SE/m5.fast
> build/ARM_SE/m5.fast
> build/MIPS_SE/m5.fast
> build/POWERPC_SE/m5.fast
> build/SPARC_FS/m5.fast
> build/SPARC_SE/m5.fast
> build/X86_FS/m5.fast
> build/X86_SE/m5.fast
>
>
>
> On Thu, Oct 8, 2009 at 5:37 AM, Timothy M. Jones <tjon...@inf.ed.ac.uk>  
> wrote:
>> # HG changeset patch
>> # User Timothy M. Jones <tjon...@inf.ed.ac.uk>
>> # Date 1255004954 -3600
>> # Node ID a0fe8c2c47ef58011f073221835c27cd73ddf82e
>> # Parent  0569f32a43a12eaa170b8d9a804e78ad9bef6de4
>> Addition of an ioctl command code for PowerPC.
>>
>> diff --git a/src/arch/powerpc/linux/linux.hh  
>> b/src/arch/powerpc/linux/linux.hh
>> --- a/src/arch/powerpc/linux/linux.hh
>> +++ b/src/arch/powerpc/linux/linux.hh
>> @@ -130,6 +130,8 @@
>>
>>     //@{
>>     /// ioctl() command codes.
>> +    /// These are for the 2.6.15 kernel. Some have changed for
>> +    /// later versions.
>>     static const unsigned TIOCGETP_   = 0x40067408;
>>     static const unsigned TIOCSETP_   = 0x80067409;
>>     static const unsigned TIOCSETN_   = 0x8006740a;
>> @@ -139,6 +141,7 @@
>>     static const unsigned TIOCISATTY_ = 0x2000745e;
>>     static const unsigned TIOCGETS_   = 0x402c7413;
>>     static const unsigned TIOCGETA_   = 0x40147417;
>> +    static const unsigned TCSETAW_    = 0x80147419;
>>     //@}
>>  };
>>
>> diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
>> --- a/src/sim/syscall_emul.hh
>> +++ b/src/sim/syscall_emul.hh
>> @@ -500,6 +500,7 @@
>>       case OS::TIOCGETC_:
>>       case OS::TIOCGETS_:
>>       case OS::TIOCGETA_:
>> +      case OS::TCSETAW_:
>>         return -ENOTTY;
>>
>>       default:
>>
>> --
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>> _______________________________________________
>> m5-dev mailing list
>> m5-dev@m5sim.org
>> http://m5sim.org/mailman/listinfo/m5-dev
>>
>>
> _______________________________________________
> m5-dev mailing list
> m5-dev@m5sim.org
> http://m5sim.org/mailman/listinfo/m5-dev
>


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to