Hi Dean, Looking at the code, I can see that NetworkLink_d has 2 constructors: one where just the id is passed, and is used when CreditLink_d links are created, and one where the network pointer is passed when NetworkLink_d is created. In the latter case, GarnetNetwork_d passes the "this" pointer so it should not be NULL. For Credit links m_net_ptr will be NULL and my guess is these are the links you saw in the wakeup function.
cheers, Tushar On Mar 20, 2012, at 6:17 PM, Dean Michael Ancajas wrote: > > Hi, > First of all, I am using gems+garnet setup but since the gems list is now > defunct I might as well ask here. I have some issues on the NetworkLink_d > class. In the wakeup() function, I checked the m_net_ptr and some links have > m_net_ptr that resolve to NULL. The link IDs for links that have the NULL > pointer are the same across different runs. I also put something like > > assert(net_ptr != NULL) everytime a NetworkLink_d is constructed in > GarnetNetwork_d and these assertions are not fired at all. > > -dean > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
