Andros 1337
11-07-2009, 04:48 AM
I am currently doing a cache simulator in C, however, I am confused about one thing: how to find a victim. Particularly, I would like to know what should I do if the valid bit == 0. I know that at the end, I am supposed to check the minimum least recently used and set it as the victim.