target/arm: Pass unpriv bool to get_a64_user_mem_index()
commit81466e4bad85b99493adb4535b16e8733ac1b72e
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2023 14:04:25 +0000 (12 15:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2023 15:07:13 +0000 (21 16:07 +0100)
tree26ad06d77cac77eca4063afaec00fba9aef0830c
parentdbc678f90a1dab0d2701b068dd7eab627869d045
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
target/arm/tcg/translate-a64.c