target/ppc: Replace hard coded constants in ppc_jumbo_xlate()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:27:49 +0000 (01:27 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:43:06 +0000 (09:43 +1000)
commitf178e4f8949ec75d0e1e34f9b1ace646d1e6a031
tree633ba8e497b4019066d0a9b1e1d36d2618bcae0f
parent9e9ca54cdb493721f8444030e6dcf680400c8d0b
target/ppc: Replace hard coded constants in ppc_jumbo_xlate()

The "2" in booke206_update_mas_tlb_miss() call corresponds to
MMU_INST_FETCH which is the value of access_type in this branch;
mmubooke206_esr() only checks for MMU_DATA_STORE and it's called from
code access so using MMU_DATA_LOAD here seems wrong so replace it with
access_type here as well that yields the same result. This also makes
these calls the same as the data access branch further down.

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