You can add a parameter to the CPU you're using and then pass that to simple 
thread through a constructor or some other means. The parameter in python could 
the be altered by a command line parameter. 

Ali

Sent from my ARM powered device

On Mar 9, 2011, at 11:25 AM, Griffin Wright <[email protected]> wrote:

> Hi,
> 
> I'm working with making subtle changes in simple_thread.hh, and would like a 
> way to toggle some code either on or off using a command line parameter so 
> that I don't have to recompile everything each time.
> 
> Is there a way to do this?  Trace flags won't do it, and adding parse options 
> to Options.py doesn't seem to allow quite this functionality.  Of course, 
> it's quite likely that it is possible and I've just not come to realize it 
> yet.  I know this can be done with other simulators, but I don't know how to 
> set that up with m5.
> 
> Thanks,
> Griffin Wright
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
> 
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to