[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] riscv: Set xPIE to 1 after xRET
From: |
Bin Meng |
Subject: |
Re: [PATCH] riscv: Set xPIE to 1 after xRET |
Date: |
Fri, 3 Jan 2020 22:22:48 +0800 |
On Fri, Jan 3, 2020 at 4:03 PM Yiting Wang <address@hidden> wrote:
>
> When executing an xRET instruction, supposing xPP holds the
> value y, xIE is set to xPIE; the privilege mode is changed to y;
> xPIE is set to 1. But QEMU sets xPIE to 0 incorrectly.
>
> Signed-off-by: Yiting Wang <address@hidden>
> ---
> target/riscv/op_helper.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Bin Meng <address@hidden>
Tested-by: Bin Meng <address@hidden>