]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/booke: Use the 'tlbilx' instruction on newer cores
authorJustin Hibbits <jhibbits@FreeBSD.org>
Wed, 13 Feb 2019 03:11:12 +0000 (03:11 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Wed, 13 Feb 2019 03:11:12 +0000 (03:11 +0000)
commit64143619ab52bac3705de2671e9c789d119312df
tree067140566880f2dc776cbfbb05581fe6810a77d3
parenta73b2e25e1e2b69fb172fbb391e5bd1c3878e881
powerpc/booke: Use the 'tlbilx' instruction on newer cores

Newer cores have the 'tlbilx' instruction, which doesn't broadcast over
CoreNet.  This is significantly faster than walking the TLB to invalidate
the PID mappings.  tlbilx with the arguments given takes 131 clock cycles to
complete, as opposed to 512 iterations through the loop plus tlbre/tlbwe at
each iteration.

MFC after: 3 weeks
sys/powerpc/booke/pmap.c