target/arm: Remove loop from get_phys_addr_lpae
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 24 Oct 2022 05:18:44 +0000 (15:18 +1000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2022 09:27:23 +0000 (10:27 +0100)
commitfe4ddc151b72a06eaeaa2359c51b66e698dd9c44
tree777499de75273c52aab12ee0ef2427abb0638b76
parentf0a398a2490656fac87b7ee4ba1fb01a42840875
target/arm: Remove loop from get_phys_addr_lpae

The unconditional loop was used both to iterate over levels
and to control parsing of attributes.  Use an explicit goto
in both cases.

While this appears less clean for iterating over levels, we
will need to jump back into the middle of this loop for
atomic updates, which is even uglier.

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