target/arm/ptw: Pass ptw into get_phys_addr_pmsa*() and get_phys_addr_disabled()
commita5637bec4c8989373f70c3d2841988c967fc4642
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:06 +0000 (22 17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:06 +0000 (22 17:31 +0100)
treea07b92874406c6f00e268a9925ac7a5b322c3f1f
parent4f51edd3cd1746c0eee66eebafdfb642f8dd7e87
target/arm/ptw: Pass ptw into get_phys_addr_pmsa*() and get_phys_addr_disabled()

In commit 6d2654ffacea813916176 we created the S1Translate struct and
used it to plumb through various arguments that we were previously
passing one-at-a-time to get_phys_addr_v5(), get_phys_addr_v6(), and
get_phys_addr_lpae().  Extend that pattern to get_phys_addr_pmsav5(),
get_phys_addr_pmsav7(), get_phys_addr_pmsav8() and
get_phys_addr_disabled(), so that all the get_phys_addr_* functions
we call from get_phys_addr_nogpc() take the S1Translate struct rather
than the mmu_idx and is_secure bool.

(This refactoring is a prelude to having the called functions look
at ptw->is_space rather than using an is_secure boolean.)

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