qemu-riscv
[Top][All Lists]
Advanced

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

Re: [PATCH v10 04/77] target/riscv: rvv-1.0: set mstatus.SD bit if mstat


From: Alistair Francis
Subject: Re: [PATCH v10 04/77] target/riscv: rvv-1.0: set mstatus.SD bit if mstatus.VS is dirty
Date: Mon, 29 Nov 2021 13:16:44 +1000

On Mon, Nov 29, 2021 at 1:07 PM <frank.chang@sifive.com> wrote:
>
> From: Frank Chang <frank.chang@sifive.com>
>
> Signed-off-by: Frank Chang <frank.chang@sifive.com>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  target/riscv/csr.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/target/riscv/csr.c b/target/riscv/csr.c
> index 9b5bd5d7b49..bb500afdeb5 100644
> --- a/target/riscv/csr.c
> +++ b/target/riscv/csr.c
> @@ -502,6 +502,7 @@ static RISCVException read_mhartid(CPURISCVState *env, 
> int csrno,
>  static uint64_t add_status_sd(RISCVMXL xl, uint64_t status)
>  {
>      if ((status & MSTATUS_FS) == MSTATUS_FS ||
> +        (status & MSTATUS_VS) == MSTATUS_VS ||
>          (status & MSTATUS_XS) == MSTATUS_XS) {
>          switch (xl) {
>          case MXL_RV32:
> --
> 2.25.1
>
>



reply via email to

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