Hi Fernando,

Maybe I did not explained very well my situation.

I know how to use m5. I use it for my simulations. What I want is to use
it to exit gem5 with an error code. When I use "/sbin/m5 exit", gem5
returns with 0. I want to use "/sbin/m5 fail" to exit with anything
except 0. This option exists in the source code of m5, but not on the
binary which is by default on disk images.

Anyway, by writing this email I found a simple solution: I replaced the
default m5 binary with the one I have compiled on my computer. This
solution is so basic that I did not think to this.

Thank you.


On 28/02/2016 13:21, Fernando Endo wrote:
> Hello,
> 
> You have to pass the command itself to 'm5':
> ./m5 exit
> ./m5 resetstats
> 
> (If you manually booted linux in the FS, maybe 'sudo m5 checkpoint' is
> needed)
> 
> It assumes delay=0/period=0 if nothing is given.
> 
> Regards,
> 
> --
> Fernando A. Endo, Post-doc
> 
> INRIA Rennes-Bretagne Atlantique
> France
> 
> 
> 2016-02-23 17:28 GMT+01:00 Pierre-Yves Péneau <[email protected]>:
> 
>> Hi all,
>>
>> I am facing an issue with the m5 binary located in util/m5. When I
>> compile it with the ARM makefile and execute it on my computer, I get
>> this output:
>>
>>> /tmp/gem5/m5@foo% ./m5
>>> usage: ./m5 exit [delay]
>>>        ./m5 fail <code> [delay]
>>>        ./m5 resetstats [delay [period]]
>>> .....
>>
>> When I start gem5 (compiled for the ARM architecture) and launch m5
>> inside gem5, I get this output:
>>
>>> # /sbin/m5
>>> usage: /sbin/m5 exit [delay]
>>>        /sbin/m5 resetstats [delay [period]]
>>> .....
>>
>> Where is the fail option ? Did I miss something ?
>>
>> Thank you.
>>
>> --
>> +-------------------------------------------------------------+
>> | Pierre-Yves Péneau - PhD student |  first.last at lirmm.fr  |
>> | LIRMM / CNRS - SYSMIC team       |    + 33 4 67 41 85 85    |
>> | Building 4 Office H2.2           |    http://walafc0.org    |
>> +-------------------------------------------------------------+
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
> 
> 
> 
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 

-- 
+-------------------------------------------------------------+
| Pierre-Yves Péneau - PhD student |  first.last at lirmm.fr  |
| LIRMM / CNRS - SYSMIC team       |    + 33 4 67 41 85 85    |
| Building 4 Office H2.2           |    http://walafc0.org    |
+-------------------------------------------------------------+

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to