target/arm/ptw: Report stage 2 fault level for stage 2 faults on stage 1 ptw
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:10 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:10 +0000 (17:31 +0100)
commita729d63642b01f2b7a3c1db468811a7b40b88f70
treed342566ae91c9ce9f37a3f4f27b74e0837967306
parentd53e25075bd9c89c81ab2bfc45ccbcdc92842b24
target/arm/ptw: Report stage 2 fault level for stage 2 faults on stage 1 ptw

When we report faults due to stage 2 faults during a stage 1
page table walk, the 'level' parameter should be the level
of the walk in stage 2 that faulted, not the level of the
walk in stage 1. Correct the reporting of these faults.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230807141514.19075-15-peter.maydell@linaro.org
target/arm/ptw.c