Re: [PATCH] target/arm: allow DC CVA[D]P in user mode emulation

2023-05-16 Thread Zhuojia Shen
On 05/16/2023 01:08 PM -0700, Richard Henderson wrote: > On 5/15/23 20:59, Zhuojia Shen wrote: > > 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.

Re: [PATCH] target/arm: allow DC CVA[D]P in user mode emulation

2023-05-16 Thread Richard Henderson
On 5/15/23 20:59, Zhuojia Shen wrote: 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). The Arm ARM documents the semantics of the two instructions th

[PATCH] target/arm: allow DC CVA[D]P in user mode emulation

2023-05-15 Thread Zhuojia Shen
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). The Arm ARM documents the semantics of the two instructions that they behave as DC CVAC if the address