]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
target/arm: factor MDCR_EL2 common handling
authorRémi Denis-Courmont <remi.denis.courmont@huawei.com>
Tue, 12 Jan 2021 10:44:57 +0000 (12:44 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jan 2021 14:38:51 +0000 (14:38 +0000)
commit59dd089cf9e4a9cddee596c8a1378620df51b9bb
tree43dbc536819965662b4c5707a5cce3d831bced34
parente04a5752cb03e066d7b1e583e340c7982fcd5e4e
target/arm: factor MDCR_EL2 common handling

This adds a common helper to compute the effective value of MDCR_EL2.
That is the actual value if EL2 is enabled in the current security
context, or 0 elsewise.

Signed-off-by: Rémi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210112104511.36576-5-remi.denis.courmont@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c