]> Git Repo - qemu.git/commit
target/riscv: Fix update of hstatus.SPVP
authorGeorg Kotheimer <[email protected]>
Tue, 13 Oct 2020 15:10:54 +0000 (17:10 +0200)
committerAlistair Francis <[email protected]>
Thu, 22 Oct 2020 19:00:22 +0000 (12:00 -0700)
commitace544532c4064e995ef69ec9dc93aad62e19988
treeadd9c6a1cb7b2fef5ff4ab304ee68bf4648249a2
parent801da1701cbc3f904639706e830ba20098d0ab5f
target/riscv: Fix update of hstatus.SPVP

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.

Signed-off-by: Georg Kotheimer <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 20201013151054[email protected]
Signed-off-by: Alistair Francis <[email protected]>
target/riscv/cpu_helper.c
This page took 0.025083 seconds and 4 git commands to generate.