target/hppa: Perform access rights before protection id check
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 5 Oct 2024 12:11:34 +0000 (05:11 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Oct 2024 18:27:05 +0000 (11:27 -0700)
commit32142b807726e56b422c6990454f5dca0ef8d80f
tree8abdbbcc3fb2bfcec467ca357a3190b955b5555a
parent4e6939c9344cd99059571c51457d7f024d1572de
target/hppa: Perform access rights before protection id check

In Chapter 5, Interruptions, the group 3 exceptions lists
"Data memory access rights trap" in priority order ahead of
"Data memory protection ID trap".

Swap these checks in hppa_get_physical_address.

Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/mem_helper.c