OSDN Git Service

target/arm: Mask virtual interrupts if HCR_EL2.TGE is set
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:21 +0000 (17:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:21 +0000 (17:17 +0100)
commit2ccf0fef632f3d54b2cc9ea08f1e6904ff1f8df4
tree3366818d7868e62ba3b70588480959aab4a13e32
parenta3f0ecfd4e98d22e1c24e7baa924d99250a5799f
target/arm: Mask virtual interrupts if HCR_EL2.TGE is set

If the "trap general exceptions" bit HCR_EL2.TGE is set, we
must mask all virtual interrupts (as per DDI0487C.a D1.14.3).
Implement this in arm_excp_unmasked().

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