Sure, but I was wondering is there an easier way to connect between the dynamic
python parameters and the c++ code?
----- Original Message -----
From: Ravi Prakash M
To: M5 users mailing list
Sent: Sunday, June 22, 2008 6:11 PM
Subject: Re: [m5-users] get python values into c files
Hi Sujay,
U can use file I/O operation , put the comments next to numcpus definition
and also add some keyword , and then search for that keyword read the lines
using readline() and extract the information ,
u need .
Regards,
Ravi
On Sun, Jun 22, 2008 at 4:45 PM, Sujay Phadke <[EMAIL PROTECTED]> wrote:
Hello,
I am trying to get the dynamic values of the system configuration and
use it in a custom .cc file in M5. For example, I would like to get the
numcpus, or L2 size, etc. which is either in the .py files or specified in the
config files. How do I get these values and use it in my files?
Thanks,
Sujay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
--
Regards,
Ravi Prakash M
------------------------------------------------------------------------------
_______________________________________________
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