Have you tried printing out the parameter to see if it's set or using
a debugger?
Have you set system_bus=True on the appropriate bus?
Does build/TARGET/params/Bus.hh have the parameter in it?
Ali
On Nov 25, 2007, at 6:38 PM, Shoaib Akram wrote:
I have a boolean parameter system_bus in bus.hh. In bus.cc i use it
in function recvtiming() like, if system_bus==true (use different
version of occupyBus())...and I declare a pyhton class MemBus (with
parameter system_bus set true), and use it in my script...but it
appears that the bus declared as MemBus still uses the same
occupybus()...
---- Original message ----
Date: Sun, 25 Nov 2007 18:31:04 -0600
From: Ali Saidi <[EMAIL PROTECTED]>
Subject: Re: [m5-users] Adding Parameters to Objects
To: M5 users mailing list <[email protected]>
In short yes. It what way does it not work?
Ali
On Nov 25, 2007, at 6:03 PM, Shoaib Akram wrote:
I want to add parameter to bus.h so i can recognize when a declared
bus in python script is system bus other than a toL2bus etc. I
declared a variable in bus.h, used it in bus.cc, and added the
following statement in m5.objects in bus.py.
system_bus=Param.Bool(False,"System bus?")....it doesnot seem to
work ! Is this the right way to do it??
_______________________________________________
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
_______________________________________________
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