Hi Nick,
The issue is that AlphaO3CPU never has the
DEFINE_SIM_OBJECT_CLASS_NAME() macro called on it because the
BEGIN_DECLARE_SIM_OJBECT() macro was never called on it. You could do
this, however it could cause other problems. DerivO3CPU should work
just fine, it's not a temporary creation.
Ali
On Jul 3, 2007, at 3:39 PM, Nicolas Zea wrote:
The linker gives the error.
Does a C++ object have to have a python class associated with it to
be used as a SimObjectParam? I think this may be the issue as I did
not create an AlphaO3CPU python object.
What would be the best way to go about passing references to either
an AlphaO3CPU or DerivO3CPU object? DerivO3CPU has both a python
and c++ object defined for it, but it seems like a temporary
creation used in cpu_builder?
-Nick
On Jul 3, 2007, at 11:03 AM, Steve Reinhardt wrote:
There's no intentional restriction... that ought to work. It's
probably some subtle C++ template thing. Do you get the error
from the compiler or from the linker?
Steve
On 7/2/07, Nicolas Zea <[EMAIL PROTECTED]> wrote:
Are there any limitations on what objects can be used as
SimObjectParams? For my case, I want to pass an AlphaO3CPU pointer
to another object I constructed through the python configurations.
Originally I had:
SimObjectParam<AlphaO3CPU<AlphaSimpleImpl> *> thecpu
as my parameter definition, but this gave an error complaining that
there was no
ShowType(std::basic_ostream<char, std::char_traits<char> >&) const
method defined for that object. Same goes for just trying to use the
BaseO3CPU object. On the other hand, BaseCPU works fine.
So what is it about BaseCpu that doesn't cause this error? From what
I can tell, the ShowType method is defined in param.hh for all
SimObjectParam, regardless of what the templated object is. Maybe I'm
looking in the wrong place, or missing something.
-Nick
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users