diff options
author | 2023-08-07 11:32:09 +0200 | |
---|---|---|
committer | 2023-08-25 15:57:49 +0200 | |
commit | c01e5dfb9a5b7a4c044e5da8840b6bc1175e5839 (patch) | |
tree | e04b94aac8be3bbefba7597a259cc9559c361d43 /scripts/qapi/source.py | |
parent | target/hppa: Add missing PL1 and PL2 privilege levels (diff) | |
download | qemu-c01e5dfb9a5b7a4c044e5da8840b6bc1175e5839.tar.xz qemu-c01e5dfb9a5b7a4c044e5da8840b6bc1175e5839.zip |
target/hppa: Add privilege to MMU index conversion helpers
Add two macros which convert privilege level to/from MMU index:
- PRIV_TO_MMU_IDX(priv)
returns the MMU index for the given privilege level
- MMU_IDX_TO_PRIV(mmu_idx)
returns the corresponding privilege level for this MMU index
The introduction of those macros make the code easier to read and
will help to improve performance in follow-up patch.
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions