Hello, Thanks for previous fast replies which were very helpful. I have a new question about PC. When I do objdump -Sd myBinary, I can see that for every instruction, there is an associated PC value. Does marss record the PC value (as listed in dissembled binary file) for every x86 instruction somewhere, or as one attribute of instruction object, in the simulator?
To be more clear, for every L1 cache miss, I want to capture the PC value of the x86 instruction which precisely incurs the miss, so that I can go back to dissembled binary code and figure out where have cache misses. In the coherentCache.cpp, I have added some code in the function CacheController::cache_access_cb(void *arg) to trap the PC values when miss occurs. I tried using queueEntry->request->get_owner_rip(), but that function call didn't seem to return the right "RIP" for my own purpose. Is it possible to augment memory request objects to carry PC values as I described above? Thank you. Best regards, Jie _______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
