target/arm: Move device detection earlier in get_phys_addr_lpae
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 5 Oct 2024 14:52:10 +0000 (07:52 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Oct 2024 18:27:06 +0000 (11:27 -0700)
commit64bda5106c56faa19a31e091aef3a08249cc4ad0
tree8b1cc9fa3edb8c4033f5e5d549cdba241cd30d34
parentc053f40b598e62e7c52665bb280d745d87954385
target/arm: Move device detection earlier in get_phys_addr_lpae

Determine cache attributes, and thence Device vs Normal memory,
earlier in the function.  We have an existing regime_is_stage2
if block into which this can be slotted.

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