try something like this at the desired places: "id = pkt->req->hasContextId() ? pkt->req->contextId() : -1;"

Thanks,
Leonard



On , biswabandan panda <[email protected]> wrote:
i am using the old one only, but my question is how to print the thread id ? i tried the same with pkt-> req->threadId , but it shows 0 only for all the accesses. any idea how to get the threadid?


On Fri, Aug 5, 2011 at 8:09 PM, Sage [email protected]> wrote:

Hi Biswabandan,

I am wondering what kind of cache modules you are using, classic or ruby? If you are working on the classic one, you will need to get the tid in src/mem/cache/tags/cache_impl.hh, or pass the tid information to "tag" class functions from the same file.



Thanks,
Leonard





On Fri, Aug 5, 2011 at 5:39 AM, biswabandan panda [email protected]> wrote:





Hi all,
i know this topic was there in the mailing list but none of them works. Has anyone tried it or does anyone know how to get the thread id inside the cache modules.
--

thanks&regards



BISWABANDAN PANDAM.S.(RESEARCH SCHOLAR)

RISE LAB
IIT MADRAS

http://www.cse.iitm.ac.in/~biswa/







_______________________________________________

gem5-users mailing list

[email protected]

http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



--
Give our ability to our work, but our genius to our life!




_______________________________________________

gem5-users mailing list

[email protected]

http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



--

thanks&regards

BISWABANDAN PANDAM.S.(RESEARCH SCHOLAR)RISE LAB
IIT MADRAS

http://www.cse.iitm.ac.in/~biswa/




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

Reply via email to