]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Remove pp_check() and reuse ppc_hash32_pp_prot()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:28:09 +0000 (01:28 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:43:14 +0000 (09:43 +1000)
commite48fb4c590a23d81ee1d2f09ee9bcf5dd5f98e43
treee5a84eb7a1c9ec0f6ee8957c4c076e2b05297c51
parente7baac649bb3d9d72a3e79fc43e360d7ac99aead
target/ppc: Remove pp_check() and reuse ppc_hash32_pp_prot()

The ppc_hash32_pp_prot() function in mmu-hash32.c is the same as
pp_check() in mmu_common.c, merge these to remove duplicated code.
Define the common function as static lnline otherwise exporting the
function from mmu-hash32.c would stop the compiler inlining it which
results in slightly lower performance.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
[np: move ppc_hash32_pp_prot inline without changing it]
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/mmu-hash32.c
target/ppc/mmu-hash32.h
target/ppc/mmu_common.c