All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about rdhwr emulation.
@ 2008-10-22  1:03 David Daney
  2008-10-22  1:35 ` Maciej W. Rozycki
  0 siblings, 1 reply; 4+ messages in thread
From: David Daney @ 2008-10-22  1:03 UTC (permalink / raw)
  To: linux-mips

I was looking at the rdhwr emulation code in genex.S and wondering about the following:

If cpu_has_vtag_icache is true we run handle_ri_rdhwr_vivt() instead of handle_ri_rdhwr().

And handle_ri_rdhwr_vivt() probes the tlb to see if the faulting instruction can be reached through the TLB, if it can the 'fast path' is taken, otherwise the 'slow path'.

Why is this probe of the TLB necessary?  Or perhaps more concisely under which conditions can I set cpu_has_vtag_icache to false (noting that for our cpu this is the only place cpu_has_vtag_icache is tested)?

Thanks in advance for enlightening me,
David Daney

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

end of thread, other threads:[~2008-10-24 22:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22  1:03 Question about rdhwr emulation David Daney
2008-10-22  1:35 ` Maciej W. Rozycki
2008-10-24 21:59   ` Ralf Baechle
2008-10-24 22:22     ` David Daney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.