Hmm.. I'm very surprised this works.
The correct solution is to do something like: if test_sys.iobridge: test_sys.iobridge.ranges.append(AddrRange(mem_size)) else: #instaniate a bridge A third option may be to just all the x86 bridge something else ioapic_bridge and have two bridges (one handling each range). Ali On 03.02.2012 01:43, Joel Hestness wrote: > Hey guys, > Just ran into this myself. The IO bridge is being instantiated twice, once in FSConfig.py and again in the fs.py file. I was able to fix it for X86_FS simply by adding an if clause in the fs.py file (line 166) where it is instantiated the second time: > if not test_sys.iobridge: > > test_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns', > ranges = [AddrRange(mem_size)]) > test_sys.iobridge.slave = test_sys.iobus.port > test_sys.iobridge.master = test_sys.membus.port > I'm not sure if this would upset other architectures though. > Joel > > On Fri, Feb 3, 2012 at 12:48 AM, Gabe Black <[email protected] [7]> wrote: > >> I got this error too just now. It looks like it may have something to do >> with the port/bus/bridge changes that have gone in recently. >> >> On 02/02/12 21:54, Trang Le wrote: >> > Hi, >> > >> > I just updated to the latest version of gem5 and noticed the merge of SE and FS mode. I attempted to compile and run x86 FS mode using the following commands: >> > >> > scons build/X86/gem5.opt >> > build/X86/gem5.opt configs/example/fs.py >> > >> > When i tried to run, i encountered the following error message: >> > ============================================================= >> > gem5 Simulator System. http://gem5.org [1] >> > gem5 is copyrighted software; use the --copyright option for details. >> > >> > gem5 compiled Feb 1 2012 21:57:18 >> > gem5 started Feb 2 2012 23:18:06 >> > gem5 executing on camsin6 >> > command line: build/X86/gem5.opt configs/example/fs.py >> > warning: add_child('terminal'): child 'terminal' already has parent >> > Global frequency set at 1000000000000 ticks per second >> > 0: rtc: Real-time clock set to Sun Jan 1 00:00:00 2012 >> > Listening for com_1 connection on port 3456 >> > Error connecting port system.membus.port to .master >> > Traceback (most recent call last): >> > File "", line 1, in >> > File "/home/tkl245/gem5/src/python/m5/main.py", line 357, in main >> > exec filecode in scope >> > File "configs/example/fs.py", line 215, in >> > Simulation.run(options, root, test_sys, FutureClass) >> > File "/home/tkl245/gem5/configs/common/Simulation.py", line 245, in run >> > m5.instantiate(checkpoint_dir) >> > File "/home/tkl245/gem5/src/python/m5/simulate.py", line 91, in instantiate >> > for obj in root.descendants(): obj.connectPorts() >> > File "/home/tkl245/gem5/src/python/m5/SimObject.py", line 1003, in connectPorts >> > portRef.ccConnect() >> > File "/home/tkl245/gem5/src/python/m5/params.py", line 1485, in ccConnect >> > [el.ccConnect() for el in self.elements] >> > File "/home/tkl245/gem5/src/python/m5/params.py", line 1407, in ccConnect >> > peer.simobj.getCCObject(), peer.name [2], peer.index) >> > File "/home/tkl245/gem5/src/python/m5/SimObject.py", line 974, in getCCObject >> > raise RuntimeError, "Attempt to instantiate orphan node" >> > RuntimeError: Attempt to instantiate orphan node >> > ================================================================= >> > >> > Do you have any idea what this error might be? >> > >> > Thanks, >> > -Trang >> > _______________________________________________ >> > gem5-users mailing list >> > [email protected] [3] >> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [4] >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] [5] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [6] > > -- > Joel Hestness > PhD Student, Computer Architecture > Dept. of Computer Science, University of Texas - Austin > http://www.cs.utexas.edu/~hestness [8] Links: ------ [1] http://gem5.org [2] http://peer.name [3] mailto:[email protected] [4] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [5] mailto:[email protected] [6] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7] mailto:[email protected] [8] http://www.cs.utexas.edu/~hestness
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
