target/arm: Introduce arm_hcr_el2_eff
commitf77784446045231f7dfa46c9b872091241fa1557
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 13 Dec 2018 13:48:07 +0000 (13 13:48 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Dec 2018 14:41:24 +0000 (13 14:41 +0000)
treea941fd1053a21886e40453313068ae3396b23c5f
parentab638a328fd099ba0b23c8c818eb39f2c35414f3
target/arm: Introduce arm_hcr_el2_eff

Replace arm_hcr_el2_{fmo,imo,amo} with a more general routine
that also takes SCR_EL3.NS (aka arm_is_secure_below_el3) into
account, as documented for the plethora of bits in HCR_EL2.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181210150501.7990-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gicv3_cpuif.c
target/arm/cpu.h
target/arm/helper.c