Hi Charitha,

Tag of invalid blocks is always 0xffffffffffffffff which is MaxAddr.

You can check allocateBlock function of base.cc under cache to get a better
understanding. If you also want to know how it invalidates a block, you can
check invalidate function of cache_blk.hh

Best,
Muhammet

Charitha Saumya <[email protected]>, 19 Kas 2019 Sal, 00:15
tarihinde şunu yazdı:

> Hi,
>
> I am a newbie to gem5 and I have been testing a simple array traversal
> using gem5 x86 build. The system I am testing has L1 icache, dcache and a
> share L2 cache.
>
> I used this command for running gem5,
> /build/X86/gem5.opt --debug-flags=CacheRepl configs/tutorial/two_level.py
> --l2_size='1MB' --l1d_size='256kB'
> --benchmark=tests/test-progs/simple/simple32
>
> In the debug messages I get I see a lot of tag: 0xfffffffffffffff. Can
> someone explain why the cache tag is fixed but only the set is changing? In
> my array traversal program the array is large (2048000 elements of uint32_t)
> and I write to every element.
> 58158000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x668 way: 0
> 58308000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x33f way: 0
> 58329000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x33f way: 0
> 58657000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x664 way: 0
> 58678000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x664 way: 0
> 58828000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x335 way: 0
> 58849000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0xffffffffffffffff set: 0x335 way: 0
>
> Thanks,
> Charitha
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to