target/ppc: Reorganise and rename ppc_hash32_pp_prot()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 26 May 2024 23:12:36 +0000 (01:12 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:33 +0000 (09:51 +1000)
commit698faf3304805d8951bb0de0ab08f5d2dbeae7cf
tree276179fc2689f2b7bd7e0e4d56eebe3353f1d0ef
parent625b58fde83d226c6ea61004edad04858481c0e4
target/ppc: Reorganise and rename ppc_hash32_pp_prot()

Reorganise ppc_hash32_pp_prot() swapping the if legs so it does not
test for negative first and clean up to make it shorter. Also rename
it to ppc_hash32_prot().

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