From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <41ef5caa15b42ba91f2afc1b73c140ae.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199608020622.IAA15093@ceres.tat.physik.uni-tuebingen.de> Date: Fri, 2 Aug 1996 10:37:08 +0300 (EET DST) From: Linus Torvalds Subject: Re: 21164 cache tags In-Reply-To: <199608011643.JAA06906@panda.azstarnet.com> On Thu, 1 Aug 1996, David Mosberger-Tang wrote: > Matti> Quote from "Alpha Implementations and Architecture": > > Matti> The data cache (Dcache) is a dual ported, 8KB write thru, > Matti> read allocate, direct mapped, virtually indexed, physically > ^^^^^^^^^^^^^ > Matti> tagged cache with 32-byte blocks. The access time is 2 > Matti> cycles and the bandwidth is 16 bytes per cycle. Note that "virtually indexed, physically tagged" really has no meaning from a software standpoint on the 21164. That's how it's done in hardware, but because the L1 cache is direct mapped and <= pagesize, from a software standpoint the cache can be considered physically indexed like the other caches (*). (*) Direct-mapped, 8kB cache: cache lookup is done using the low 13 bits of the virtual address (actually, bits 6-12, as address bits 0-5 are the address within the cache line). And the virtual->physical translation doesn't change those bits, so together with the physical tag the cache can be considered completely physical. The only thing the "virtual indexing" means in this context is that the hardware cache lookup on the chip can happen in parallell with the virtual address translation.. > The "read allocate" is a real catch. Linus's cache flush code does > indeed flush the second-level cache (and third-level, if present), but > _not_ the first-level catch. You have to do reads to flush the > first-level data-cache. You can get _very_ odd results, > otherwise... ;-) Nope, I did memory copies to flush the cache, so the L1 cache does get flushed too, by the read side of the memcpy.. Linus -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null