Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv: vector: Check SR_SD before saving vstate #407

Closed
wants to merge 1 commit into from

Commits on Jan 5, 2024

  1. riscv: vector: Check SR_SD before saving vstate

    The SD bit summarizes the dirty states of FS, VS, or XS fields,
    providing a "fast check" before saving fstate or vstate.
    
    Let __switch_to_vector() check SD bit as __switch_to_fpu() does.
    
    Fixes: 3a2df63 ("riscv: Add task switch support for vector")
    Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    Song Shuai authored and Björn Töpel committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    e7b56b1 View commit details
    Browse the repository at this point in the history