Re: tool=cachegrind always reports LL misses, even if the cache is bigger than the used memory

John Reiser <[email protected]> Tue, 25 Apr 2023 14:28:20 -0700
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
> I would think that, regardless of cache size, the *first* access to a line
> causes a miss.

The PowerPC and relatives have an instruction which force-allocates
(if necessary) AND zeroes an entire cache line, so in some ways the
"first" access is a Write which succeeds with no miss.