OSDN Git Service

target/arm: allow DC CVA[D]P in user mode emulation
authorZhuojia Shen <chaosdefinition@hotmail.com>
Tue, 6 Jun 2023 09:19:40 +0000 (10:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Jun 2023 09:19:40 +0000 (10:19 +0100)
commitcd4a47f907e6b4f91627fcdad5174ecb2570ad0e
tree77e9ab6fa133e871e0033e77dd93180ca8a02e58
parent59b6b42cd3446862567637f3a7ab31d69c9bef51
target/arm: allow DC CVA[D]P in user mode emulation

DC CVAP and DC CVADP instructions can be executed in EL0 on Linux,
either directly when SCTLR_EL1.UCI == 1 or emulated by the kernel (see
user_cache_maint_handler() in arch/arm64/kernel/traps.c).

This patch enables execution of the two instructions in user mode
emulation.

Signed-off-by: Zhuojia Shen <chaosdefinition@hotmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c