target/ppc: Remove bat_size_prot()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 26 May 2024 23:13:01 +0000 (01:13 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:34 +0000 (09:51 +1000)
commitd323338629588ea985c68384642169045ca0e16d
tree887e384c4060b8dd24fb6498745ff05d1ad18875
parent6ca35e8763e9c37a9cedd28d286f78fbbf45968c
target/ppc: Remove bat_size_prot()

There is already a hash32_bat_prot() function that does most if this
and the rest can be inlined. Export hash32_bat_prot() and rename it to
ppc_hash32_bat_prot() to match other functions and use it in
get_bat_6xx_tlb().

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/mmu-hash32.c
target/ppc/mmu-hash32.h
target/ppc/mmu_common.c