OSDN Git Service

target/arm: Fix fault reporting in get_phys_addr_lpae
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 24 Oct 2022 05:18:45 +0000 (15:18 +1000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2022 09:27:24 +0000 (10:27 +0100)
commit27c1b81d6195ca5f39d656c5cca497ed78943339
tree2164898e314fe629904e9148316d7cd8823305f7
parentfe4ddc151b72a06eaeaa2359c51b66e698dd9c44
target/arm: Fix fault reporting in get_phys_addr_lpae

Always overriding fi->type was incorrect, as we would not properly
propagate the fault type from S1_ptw_translate, or arm_ldq_ptw.
Simplify things by providing a new label for a translation fault.
For other faults, store into fi directly.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20221024051851.3074715-9-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/ptw.c