Hi Avais, If I am not missing something, it should be quite easy to mark the blocks that are filled due to an instruction fetch.
You would first need to add the relevant flag in the CacheBlk class and set the flag in the Cache::handleFill if pkt->req->isInstFetch(). Make sure that you initialize it to false and you reset when you invalidate the block. Nikos On 01/18/18 11:13, Muhammad Avais wrote:
Dear All, Is there any way to know that block in L2 cache stores data or instruction? Many Thanks Best Regards Avais _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users