Skip to content
Commit 3a30cfa7 authored by Andy Chiu's avatar Andy Chiu
Browse files

riscv: Allocate user's vector context in the first-use trap



Vector unit is disabled by default for all user processes. Thus, a
process will take a trap (illegal instruction) into kernel at the first
time when it uses Vector. Only after then, the kernel allocates V
context and starts take care of the context for that user process.

Suggested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/3923eeee-e4dc-0911-40bf-84c34aee962d@linaro.org


Signed-off-by: default avatarAndy Chiu <andy.chiu@sifive.com>
parent 74a9d484
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment