Take a look at the advanced bash scripting guide: http://tldp.org/LDP/abs/html/


Pretty much:
val=`m5 initparam`
and -b Canneal -n $val

Ali

On May 12, 2012, at 5:27 PM, ef wrote:

> I am confused here, I understand how to get the initparam in the rcs file. I 
> see that under src/sim/System.py I can set the parameter :
> init_param = Param.UInt64(4, "numerical value to pass into simulator")
> In this example I set it to 4, how do I do this by the command line.
> 
> Is there anyway to pass the value through here instead of manually editing 
> System.py:
> ./build/ALPHA_FS/m5.opt configs/example/fs.py -n 4 -b canneal 
> 
> Thanks in advance
> 
> On Mon, May 7, 2012 at 11:27 PM, Ali Saidi <[email protected]> wrote:
> Hi,
> 
>  
> You can use initparam to pass one parameter. Normally I would have one rcS 
> script per benchmark and use the initparam to select the number (4) in this 
> case. 
> 
>  
> Ali
> 
>  
> On 07.05.2012 22:09, ef wrote:
> 
>> Is it possible to pass any arguments to the rcS file?
>> 
>> For instance on the command line to run gem5 I set -b Canneal and -n 4 can I 
>> pass Canneal and 4 to the rcS file?
>> Thanks in advance.
>  
>  
> 
> _______________________________________________
> 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

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

Reply via email to