Linux MIPS Architecture development
 help / color / mirror / Atom feed
* 24k data cache, PIPT or VIPT?
@ 2011-01-21  8:52 COLin
  2011-01-21 21:54 ` David VomLehn (dvomlehn)
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: COLin @ 2011-01-21  8:52 UTC (permalink / raw)
  To: ralf@linux-mips.org, linux-mips@linux-mips.org


Hi all,
I found that there is this information while Linux is booting:
    [Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes]
I thought the latest MIPS CPUs all use VIPT. I didn't find anything about PIPT on 24k Software User's Manual, either.
The code related to this is here:
        case CPU_24K:
        case CPU_34K:
        case CPU_74K:
        case CPU_1004K:
                if ((read_c0_config7() & (1 << 16))) {
                        /* effectively physically indexed dcache,
                           thus no virtual aliases. */ 
                        c->dcache.flags |= MIPS_CACHE_PINDEX;
                        break;

The 16's bit of config 7 register:
    [Alias removed: This bit indicates that the data cache is organized to
avoid virtual aliasing problems. This bit is only set if the data cache
config and MMU type would normally cause aliasing - i.e., only for
the 32KB and larger data cache and TLB-based MMU.]

Does it imply that the CPU is using PIPT?

Thanks and regards,
Colin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-24 14:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21  8:52 24k data cache, PIPT or VIPT? COLin
2011-01-21 21:54 ` David VomLehn (dvomlehn)
2011-01-21 21:54   ` David VomLehn (dvomlehn)
2011-01-23  4:34 ` Edgar E. Iglesias
2011-01-23 18:11   ` Ralf Baechle
2011-01-24 12:47 ` Ralf Baechle
2011-01-24 12:47   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox