target/ppc: Introduce mmu6xx_get_physical_address()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:27:39 +0000 (01:27 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:41:18 +0000 (09:41 +1000)
commit269d6f006b855266bb60b3e027a143ae1a654179
treee68f39b29f8c1634229603ddb4f521246657b608
parentcfd5c128320ab36ca5fa330a9e1968bf4d3cd2b6
target/ppc: Introduce mmu6xx_get_physical_address()

Repurpose get_segment_6xx_tlb() to do the whole address translation
for POWERPC_MMU_SOFT_6xx MMU model by moving the BAT check there and
renaming it to match other similar functions. These are only called
once together so no need to keep these separate functions and
combining them simplifies the caller allowing further restructuring.

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