qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-riscv] [Qemu-devel] [PATCH v2 03/17] RISC-V: support vector ex


From: Richard Henderson
Subject: Re: [Qemu-riscv] [Qemu-devel] [PATCH v2 03/17] RISC-V: support vector extension csr
Date: Wed, 11 Sep 2019 18:43:29 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 9/11/19 2:25 AM, liuzhiwei wrote:
> @@ -873,7 +925,12 @@ static riscv_csr_operations csr_ops[CSR_TABLE_SIZE] = {
>      [CSR_FFLAGS] =              { fs,   read_fflags,      write_fflags      
> },
>      [CSR_FRM] =                 { fs,   read_frm,         write_frm         
> },
>      [CSR_FCSR] =                { fs,   read_fcsr,        write_fcsr        
> },
> -
> +    /* Vector CSRs */
> +    [CSR_VSTART] =              { any,   read_vstart,     write_vstart      
> },
> +    [CSR_VXSAT] =               { any,   read_vxsat,      write_vxsat       
> },
> +    [CSR_VXRM] =                { any,   read_vxrm,       write_vxrm        
> },
> +    [CSR_VL] =                  { any,   read_vl                            
> },
> +    [CSR_VTYPE] =               { any,   read_vtype                         
> },

Is there really no MSTATUS bit to disable the vector unit,
as there is for the FPU?  That seems like a defect in the
specification if true...


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]