See http://m5sim.org/wiki/index.php/Memory_System#Access_Types.
There will always be packets without a context ID (e.g., writebacks), so you'll need to check hasContextId() and have some plan of how to deal with the packets that don't have one. Steve On Sun, Aug 15, 2010 at 2:53 PM, Weixun Wang <[email protected]> wrote: > Hi All, > > What is a "functional access" in M5? In port.hh there is a comment saying: > > "/** Function called by the associated device to send a functional access, > an access in which the data is instantly updated everywhere in the > memory system, without affecting the current state of any block or > moving the block. > */" > > But I'm still not very clear what is it used for? Could anyone give me some > examples? > > Besides, I need to use the CPU id in class LRU and Cache. So I need to make > sure that the contextID (CPU id, right? I guess...) in the request in each > Packet properly set. However, I found this information in the packet passing > along the functional access not properly set (with a very large number). > > Thanks. > > -- > Best Regards, > > Wang, Weixun > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
