I am trying to get familiar with gem5 simulator. To start, I wrote a simple
program with

int main()
{
    m5_reset_stats(0, 0);
    m5_dump_stats(0, 0);
    return 0;
}

I compiled it with util/m5/m5op_x86.S and ran it using...

 ./build/X86/gem5.opt configs/example/se.py --caches -c ~/tmp/hello

The m5out/stats.txt shows (among other things)...

system.cpu.dcache.ReadReq_hits::total             881
system.cpu.dcache.WriteReq_hits::total            917
system.cpu.dcache.ReadReq_misses::total            54
system.cpu.dcache.WriteReq_misses::total           42

Why is an empty function showing so much hits and misses? Are the hits and
misses caused by libc? If so, then what is the purpose of m5_reset_stats()
and m5_dump_stats()?

Thanks

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

Reply via email to