Re: [PATCH] target/riscv: Fix update of hstatus.SPVP

2020-10-14 Thread Alistair Francis
On Tue, Oct 13, 2020 at 8:11 AM Georg Kotheimer wrote: > > When trapping from virt into HS mode, hstatus.SPVP was set to > the value of sstatus.SPP, as according to the specification both > flags should be set to the same value. > However, the assignment of SPVP takes place before SPP itself is >

[PATCH] target/riscv: Fix update of hstatus.SPVP

2020-10-13 Thread Georg Kotheimer
When trapping from virt into HS mode, hstatus.SPVP was set to the value of sstatus.SPP, as according to the specification both flags should be set to the same value. However, the assignment of SPVP takes place before SPP itself is updated, which results in SPVP having an outdated value.