]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc: Simplify ppc_booke_xlate() part 1
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:27:55 +0000 (01:27 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:43:08 +0000 (09:43 +1000)
commitaa20e1c8c642a1986f8e949af311d9bd2ee70f8e
tree74e8423487ceeb245b79e7119de7f24cab539cef
parentba91e5d0276607fd6f862b498603f94c16ec0e07
target/ppc: Simplify ppc_booke_xlate() part 1

Move setting error_code that appears in every case out in front and
hoist the common fall through case for BOOKE206 as well which allows
removing the nested switches.

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