Is there any tool that can tell me which cache set the data is placed in when I run the C language? What data is placed in each Cache line?
The reason for doing this is because I want to have a deeper understanding of the cache replacement strategy. So I want to know what data has been fetched into the cache. And when reading the data, which cacheLine was replaced. In some cases, I want the data of a CacheSet to follow my design. So I want to be able to know the details of the data in the cache.