gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Process.map() in Configuration Script

QY
Qureshi Yasir Mahmood
Thu, Jun 22, 2017 3:58 PM

Hi All,

I am trying to use the process.map() from Process class in Process.py, in my configuration script which is slightly modified version of se.py. But when I use it in the following way

process=Process()
process.map(0x10000000, 0x8010000, 4096)

gem5 gives an error

File "../../configs/example/se.py", line 236, in <module>
process.map(system, 0x10000000, 0x8010000, 4096)
File "/home/yqureshi/gem5/src/python/m5/SimObject.py", line 878, in cxx_call
ccobj = self.getCCObject()
File "/home/yqureshi/gem5/src/python/m5/SimObject.py", line 1459, in getCCObject
raise RuntimeError, "Attempt to instantiate orphan node"
RuntimeError: Attempt to instantiate orphan node

I am unable to understand, why am I not allowed to access the map function in Process class. Any ideas ?

Regards
Yasir

Hi All, I am trying to use the process.map() from Process class in Process.py, in my configuration script which is slightly modified version of se.py. But when I use it in the following way process=Process() process.map(0x10000000, 0x8010000, 4096) gem5 gives an error File "../../configs/example/se.py", line 236, in <module> process.map(system, 0x10000000, 0x8010000, 4096) File "/home/yqureshi/gem5/src/python/m5/SimObject.py", line 878, in cxx_call ccobj = self.getCCObject() File "/home/yqureshi/gem5/src/python/m5/SimObject.py", line 1459, in getCCObject raise RuntimeError, "Attempt to instantiate orphan node" RuntimeError: Attempt to instantiate orphan node I am unable to understand, why am I not allowed to access the map function in Process class. Any ideas ? Regards Yasir