]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Add a function to check for page protection bit
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:28:07 +0000 (01:28 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:43:13 +0000 (09:43 +1000)
commitcd1038ec1d316aeca52a0c5d18da055d5aa014c9
tree3b567a7fe18ad4c0f9eb8a2af1d055b80f154a77
parent950251ee7b459d160fd3adfa2792326aa29b5d6c
target/ppc: Add a function to check for page protection bit

Checking if a page protection bit is set for a given access type is a
common operation. Add a function to avoid repeating the same check at
multiple places. As this relies on access type and page protection bit
values having certain relation also add an assert to ensure that this
assumption holds.

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/cpu_init.c
target/ppc/internal.h
target/ppc/mmu-hash32.c
target/ppc/mmu-hash64.c
target/ppc/mmu-radix64.c
target/ppc/mmu_common.c