Hi, Nate, thanks for your reply. It seems that my problem is a silly
question. My device inherit the *System* sys* of Piodevice, and now I want
to add a pointer to this device in the System class, so there is a loop
here.

But I still want to access the device from the system class.   I add the
device by modifying FSConfig.py. That is adding

*self.race_v = Race(pio_addr=0x80140000000,devicename = "Race")
self.race_v.pio = self.iobus.port*

in the function makeLinuxAlphaSystem.

It seems that I still cannot access the device such as reading a variable
that is declared in the device. Is there anyway to achieve this? Thanks !


> Message: 2
> Date: Thu, 2 Apr 2009 23:52:27 -0700
> From: nathan binkert <[email protected]>
> Subject: Re: [m5-users] add a device pointer in the system
> To: M5 users mailing list <[email protected]>
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > RuntimeError: system.race_v: Cycle found in configuration heirarchy.
> >
> > What's wrong? Does someone have any ideas ? Thanks!
>
> I must admit that I think the error message is pretty clear.  You've
> created a dependence loop in your objects in the hierarchy which we
> disallow.  We could probably relax that rule now, but there isn't a
> compelling enough reason to put the effort into making that change.
>
> Nate
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to