sure

On 2/14/12, [email protected] <[email protected]> wrote:
> Hi,
>
> After changing the code as you described, I still get the same errors.
> Do I need to rebuild the system with scons again?
>
> Thanks
>
> Quoting Mahmood Naderan <[email protected]>:
>
>> For bwaves it is safe to ignore that.
>>
>> change src/sim/syscall_emul.hh::ioctlFunc() to
>>     switch (req) {
>>       /*case OS::TIOCISATTY_:
>>       case OS::TIOCGETP_:
>>       case OS::TIOCSETP_:
>>       case OS::TIOCSETN_:
>>       case OS::TIOCSETC_:
>>       case OS::TIOCGETC_:
>>       case OS::TIOCGETS_:
>>       case OS::TIOCGETA_:
>>       case OS::TCSETAW_:
>>         return -ENOTTY;
>>        */
>>       default:
>>         warn("Unsupported ioctl call: ioctl(%d, 0x%x, ...) @ \n",
>>               fd, req, tc->pcState());
>>              return -ENOTTY;
>>     }
>>
>> Then in arch/x86/linux/syscalls.cc  modify:
>>     /*  16 */ SyscallDesc("ioctl", ioctlFunc<X86Linux64>),
>>     /*  54 */ SyscallDesc("ioctl", ioctlFunc<X86Linux32>),
>>
>>
>> On 2/13/12, Ali Saidi <[email protected]> wrote:
>>>
>>>
>>> You need to hook-up the system call in
>>> src/arch/x86/linux/syscalls.cc and ultimately you'll need to look at the
>>> implementation of the ioctl call in src/sim/syscall_emul.* and see if it
>>> does something sensible for what this benchmark is trying to use it for.
>>> Most of the time it's just the c library trying to decide if the
>>> terminal is a TTY and these can be safely ignored.
>>>
>>> Ali
>>>
>>> On 13.02.2012
>>> 11:54, [email protected] wrote:
>>>
>>>> Hi all,
>>>>
>>>> I tried to run the
>>> bwaves benchmark from SPEC 2006 in X86_SE mode and
>>>> i get the
>>> following error:
>>>>
>>>> **** REAL SIMULATION ****
>>>> info: Entering event
>>> queue @ 0. Starting simulation...
>>>> warn: instruction 'fnstcw_Mw'
>>> unimplemented
>>>> warn: instruction 'fldcw_Mw' unimplemented
>>>> fatal:
>>> syscall ioctl (#16) unimplemented.
>>>> @ cycle 5818000
>>>>
>>> [unimplementedFunc:build/X86_SE/sim/syscall_emul.cc, line 83]
>>>> Memory
>>> Usage: 609268 KBytes
>>>>
>>>> Did anyone else get this error as well? Anyone
>>> know how to fix this?
>>>>
>>>> Thanks
>>>>
>>>>
>>> _______________________________________________
>>>> gem5-users mailing
>>> list
>>>> [email protected]
>>>>
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>>
>>
>>
>> --
>> --
>> // Naderan *Mahmood;
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>
>
>
>
>
>


-- 
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to