]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc64: Micro-optimize moea64 native pmap tlbie
authorjhibbits <jhibbits@FreeBSD.org>
Tue, 26 Mar 2019 02:53:35 +0000 (02:53 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Tue, 26 Mar 2019 02:53:35 +0000 (02:53 +0000)
commit35c0b5f4dd4fd2b3ee5d0275158972a176bdd122
tree9bdffb2052984b89d1c244e7ea0f223035245c68
parentd36c815c788662071d6eea483401e67cb0881bb0
powerpc64: Micro-optimize moea64 native pmap tlbie

* Cache moea64_need_lock in a local variable; gcc generates slightly better
  code this way, it doesn't need to reload the value from memory each read.
* VPN cropping is only needed on PowerPC ISA 2.02 and older cores, a subset
  of those that need serialization, so move this under the need_lock check,
  so those that don't need the lock don't even need to check this.
sys/powerpc/aim/moea64_native.c