OSDN Git Service

target/arm: Factor out FWB=0 specific part of combine_cacheattrs()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 May 2022 18:39:48 +0000 (19:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 May 2022 15:19:01 +0000 (16:19 +0100)
commit4a0b47c8150d3ac0a90f470191d64a3b199e6269
treeb9e01f502b42b3b68601745884843d12a0085f37
parent9f225e607f215003de1e4157255bb0199adff9aa
target/arm: Factor out FWB=0 specific part of combine_cacheattrs()

Factor out the part of combine_cacheattrs() that is specific to
handling HCR_EL2.FWB == 0.  This is the part where we combine the
memory type and cacheability attributes.

The "force Outer Shareable for Device or Normal Inner-NC Outer-NC"
logic remains in combine_cacheattrs() because it holds regardless
(this is the equivalent of the pseudocode EffectiveShareability()
function).

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