OSDN Git Service

target/arm: Honour HCR_EL2.TGE and MDCR_EL2.TDE in debug register access checks
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)
commit30ac6339dca3fe0d05a611f12eedd5af20af585a
tree3523dae746e8814774d960d9b9c5d86065b2c98d
parent2ccf0fef632f3d54b2cc9ea08f1e6904ff1f8df4
target/arm: Honour HCR_EL2.TGE and MDCR_EL2.TDE in debug register access checks

Some debug registers can be trapped via MDCR_EL2 bits TDRA, TDOSA,
and TDA, which we implement in the functions access_tdra(),
access_tdosa() and access_tda(). If MDCR_EL2.TDE or HCR_EL2.TGE
are 1, the TDRA, TDOSA and TDA bits should behave as if they were 1.
Implement this by having the access functions check MDCR_EL2.TDE
and HCR_EL2.TGE.

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