target/arm/ptw: Drop S1Translate::out_secure
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:09 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:09 +0000 (17:31 +0100)
commitb02f5e06bcc87a52b9955d1425faadc9ddc9d38e
tree5c1253e4ad77b98210f2276a59eee527e62e6570
parent6279f6dcdb08a45597536b546faa6a178a2c0f4a
target/arm/ptw: Drop S1Translate::out_secure

We only use S1Translate::out_secure in two places, where we are
setting up MemTxAttrs for a page table load. We can use
arm_space_is_secure(ptw->out_space) instead, which guarantees
that we're setting the MemTxAttrs secure and space fields
consistently, and allows us to drop the out_secure field in
S1Translate entirely.

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