target/ppc: optimise ppcemb_tlb_t flushing
commit4acc505d2236190efea94746e7f22e2c07bce5d6
authorNicholas Piggin <npiggin@gmail.com>
Tue, 14 Nov 2023 10:34:22 +0000 (14 20:34 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 23 Feb 2024 13:24:43 +0000 (23 23:24 +1000)
tree1acdff9476c4fc16f41e2039b86118aae18a7ebf
parent1b72973d39b601b3766d157d3d9bf99033c35e7f
target/ppc: optimise ppcemb_tlb_t flushing

Filter TLB flushing by PID and mmuidx.

Zoltan reports that, together with the previous TLB flush changes,
performance of a sam460ex machine running 'lame' to convert a wav to
mp3 is improved nearly 10%:

                  CPU time    TLB partial flushes  TLB elided flushes
Before            37s         508238               7680722
After             34s             73                  1143

Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/mmu_helper.c