On Wed, 11 Aug 2010 14:34:48 -0500, Lide Duan  wrote:  

Just a quick
question: when and where is an DynInst deleted in M5? I understand that a
new DynInst is created whenever a new instruction is fetched in Fetch
stage. Then M5 will pass and manage its pointer (DynInstPtr) throughout the
pipeline. Where is this DynInst explicitly deleted after commit? I noticed
that pointers to the instruction are erased from different structures (ROB,
LSQ, IQ, etc), but couldn't figure out where it is actually freed.
Furthermore, if I pass the DynInstPtr to some structure after commit, will
it still point to the correct content, i.e. the dynamic instruction? 


DynInst's are reference counted. When all pointers to the DynInst have
been deleted the class it self will be deleted as well. 

Ali 

 
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to