lkml.org 
[lkml]   [2024]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 11/19] riscv: csr: Add CSR encodings for VCSR_VXRM/VCSR_VXSAT
    The VXRM vector csr for xtheadvector has an encoding of 0xa and VXSAT
    has an encoding of 0x9.

    Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
    ---
    arch/riscv/include/asm/csr.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h
    index 13bc99c995d1..e5a35efd56e0 100644
    --- a/arch/riscv/include/asm/csr.h
    +++ b/arch/riscv/include/asm/csr.h
    @@ -219,6 +219,8 @@
    #define VCSR_VXRM_MASK 3
    #define VCSR_VXRM_SHIFT 1
    #define VCSR_VXSAT_MASK 1
    +#define VCSR_VXSAT 0x9
    +#define VCSR_VXRM 0xa

    /* symbolic CSR names: */
    #define CSR_CYCLE 0xc00
    --
    2.44.0


    \
     
     \ /
      Last update: 2024-05-27 16:37    [W:3.055 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site