Having separate L2 caches for data and instructions should be done easily with:
- adding a cache class for L2D to configs/common/Caches.py (if needed),
- creating and connecting corresponding busses/caches on
Also to check the blocks, you can use "isInstFetch()" (pkt->req->isInstFetch()).
Hope this helps.
From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Muhammad Ali Akhtar
Sent: 13 February 2018 18:09
Subject: [gem5-users] How to distinguish b/w Instruction and Data in L2
My understanding of L2 / Last Level Cache is that it contains BOTH Instructions
If I want to have a separate storage in L2 for Instructions and Data, any ideas
how to do that?
Data in L2 comes comes from RAM in form of blocks. Is there any way to
distinguish the data and instruction blocks?
Muhammad Ali Akhtar
Principal Design Engineer
gem5-users mailing list