[Top] [All Lists]

Question about rdhwr emulation.

Subject: Question about rdhwr emulation.
From: David Daney <>
Date: Tue, 21 Oct 2008 18:03:39 -0700
Original-recipient: rfc822;
User-agent: Thunderbird (X11/20080723)
I was looking at the rdhwr emulation code in genex.S and wondering about the 

If cpu_has_vtag_icache is true we run handle_ri_rdhwr_vivt() instead of 

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

<Prev in Thread] Current Thread [Next in Thread>