diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2024-05-13 01:28:07 +0200 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2024-05-24 09:43:13 +1000 |
commit | cd1038ec1d316aeca52a0c5d18da055d5aa014c9 (patch) | |
tree | 3b567a7fe18ad4c0f9eb8a2af1d055b80f154a77 /hw/core/loader.c | |
parent | 950251ee7b459d160fd3adfa2792326aa29b5d6c (diff) |
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>
Diffstat (limited to 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions