diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2023-09-12 15:04:25 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2023-09-21 16:07:13 +0100 |
| commit | 81466e4bad85b99493adb4535b16e8733ac1b72e (patch) | |
| tree | 26ad06d77cac77eca4063afaec00fba9aef0830c /scripts/xml-preprocess-test.py | |
| parent | dbc678f90a1dab0d2701b068dd7eab627869d045 (diff) | |
| download | focaccia-qemu-81466e4bad85b99493adb4535b16e8733ac1b72e.tar.gz focaccia-qemu-81466e4bad85b99493adb4535b16e8733ac1b72e.zip | |
target/arm: Pass unpriv bool to get_a64_user_mem_index()
In every place that we call the get_a64_user_mem_index() function we do it like this: memidx = a->unpriv ? get_a64_user_mem_index(s) : get_mem_index(s); Refactor so the caller passes in the bool that says whether they want the 'unpriv' or 'normal' mem_index rather than having to do the ?: themselves. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230912140434.1333369-4-peter.maydell@linaro.org
Diffstat (limited to 'scripts/xml-preprocess-test.py')
0 files changed, 0 insertions, 0 deletions