[m5-dev] Object Initialization using Python

2011-03-10 Thread Nilay Vaish
As I understand, we use Python objects to initialize C++ objects. Is it possible to pass a pointer to an array (dynamic sized) from Python to C++? Thanks Nilay ___ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev

Re: [m5-dev] Object Initialization using Python

2011-03-10 Thread nathan binkert
As I understand, we use Python objects to initialize C++ objects. Is it possible to pass a pointer to an array (dynamic sized) from Python to C++? What do you mean a pointer? We do have VectorParams that allow us to pass an stl vector of any parameter type to a class. If you mean a SimObject

Re: [m5-dev] Object Initialization using Python

2011-03-10 Thread Nilay Vaish
Can you point out an example of vector parameter? That should serve my purpose. Thanks Nilay On Thu, 10 Mar 2011, nathan binkert wrote: As I understand, we use Python objects to initialize C++ objects. Is it possible to pass a pointer to an array (dynamic sized) from Python to C++? What do

Re: [m5-dev] Object Initialization using Python

2011-03-10 Thread nathan binkert
I'm traveling so I don't have Access to code. Just grep for VectorParam. Nate On Thu, Mar 10, 2011 at 3:55 PM, nathan binkert bink...@gmail.com wrote: I'm traveling so I don't have Access to code. Just grep for VectorParam On Mar 10, 2011, at 15:01, Nilay Vaish ni...@cs.wisc.edu wrote:

Re: [m5-dev] Object Initialization using Python

2011-03-10 Thread Gabe Black
Here's one: http://repo.m5sim.org/m5/file/77aa0f94e7f2/src/cpu/BaseCPU.py#l91 Gabe On 03/10/11 16:40, nathan binkert wrote: I'm traveling so I don't have Access to code. Just grep for VectorParam. Nate On Thu, Mar 10, 2011 at 3:55 PM, nathan binkert bink...@gmail.com wrote: I'm

Re: [m5-dev] Object Initialization using Python

2011-03-10 Thread Nilay Vaish
Nate, Gabe, Thanks, I am able to make use of VectorParam. Nilay On Thu, 10 Mar 2011, Gabe Black wrote: Here's one: http://repo.m5sim.org/m5/file/77aa0f94e7f2/src/cpu/BaseCPU.py#l91 Gabe On 03/10/11 16:40, nathan binkert wrote: I'm traveling so I don't have Access to code. Just grep for