>> If you want to do something more complex, like simulate a
>> perfect instruction cache but a realistic data cache, then
>> you probably would need to hack up a new cache model that
>> simply always acted as if it had a hit.
> 
> I've added a "perfect_cache" parameter to BaseCache with the associated
> Python magic. This is used in Cache::access in cache_impl.hh as follows:
> 
> if(perfect_cache) {
>   hits[req->cmd.toIndex()][req->thread_num]++;        // update stats
>   return MA_HIT;                              // perfect cache always
> hits
> }

Oops, you probably want:

// clear dirty bit if write through
if (!req->cmd.isNoResponse())
    respond(req, curTick+lat);

in there too, still not 100% convinced yet though.

James


-- 
[EMAIL PROTECTED]
http://www.cl.cam.ac.uk/~jrs53/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to