Hi,

Probably this is a silly question: how can I access the instantiated cache
objects in the cpu object? I understand that the CPU sends requests to I/D
cache ports which further connect to the caches. But what I am trying to do
is to call a cache object function directly in the CPU, is it possible? More
specifically, I need to collect some cache statistics every cycle, so I
implemented a function (in Cache class) to do it, and need to call this
function in CPU tick(). Then I came up with the problem that I couldn't
access the cache objects in cpu. I found that the cache object is created in
BUILD_CACHE in mem/cache/builder.cc, but where does it go after that?

Anybody has some idea about this? Thank you very much!

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

Reply via email to