Re: [PATCH] target/riscv: Backup/restore mstatus.SD bit when virtual register swapped

2021-09-14 Thread Alistair Francis
On Tue, Sep 14, 2021 at 11:37 AM wrote: > > From: Frank Chang > > When virtual registers are swapped, mstatus.SD bit should also be > backed up/restored. Otherwise, mstatus.SD bit will be incorrectly kept > across the world switches. > > Signed-off-by: Frank Chang > Reviewed-by: Vincent Chen T

Re: [PATCH] target/riscv: Backup/restore mstatus.SD bit when virtual register swapped

2021-09-14 Thread Alistair Francis
On Tue, Sep 14, 2021 at 11:37 AM wrote: > > From: Frank Chang > > When virtual registers are swapped, mstatus.SD bit should also be > backed up/restored. Otherwise, mstatus.SD bit will be incorrectly kept > across the world switches. > > Signed-off-by: Frank Chang > Reviewed-by: Vincent Chen R

[PATCH] target/riscv: Backup/restore mstatus.SD bit when virtual register swapped

2021-09-13 Thread frank . chang
From: Frank Chang When virtual registers are swapped, mstatus.SD bit should also be backed up/restored. Otherwise, mstatus.SD bit will be incorrectly kept across the world switches. Signed-off-by: Frank Chang Reviewed-by: Vincent Chen --- target/riscv/cpu_helper.c | 3 ++- 1 file changed, 2 i