Hi,

I created a custom section in the object file, and I need this section to be
loaded in several memory modules besides the PhysicalMemory.
At first, each of these memory modules are connected to a CPU core, behaving
like a scratchpad memory.

Is there an easy way to achieve that?

I've already modified the ObjectFile, ElfObject, Process and
SparcLiveProcess classes.
I also added a VectorParam of those memory modules (SPMemory) in the
System.py script, which in turn generated a new std::vector in the
SystemParams file.

* spm = VectorParam.SPMemory([], "scratchpad memory")

This vector is populated in the simulation script.
Now, when trying to start the simulation, I'm stuck with the following
error:

* TypeError: object of type 'SwigPyObject' has no len()
* swig/python detected a memory leak of type 'std::vector< SPMemory * > *',
no destructor found.

I am sure that the vector is not empty, since len() returns the expected
number of elements.

Thanks in advance.

-- 
Gustavo Henrique Nihei
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to