summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorGeorg Kotheimer <georg.kotheimer@kernkonzept.com>2020-10-13 17:10:54 +0200
committerAlistair Francis <alistair.francis@wdc.com>2020-10-22 12:00:22 -0700
commitace544532c4064e995ef69ec9dc93aad62e19988 (patch)
treeadd9c6a1cb7b2fef5ff4ab304ee68bf4648249a2 /hw/core/qdev-properties-system.c
parent801da1701cbc3f904639706e830ba20098d0ab5f (diff)
downloadfocaccia-qemu-ace544532c4064e995ef69ec9dc93aad62e19988.tar.gz
focaccia-qemu-ace544532c4064e995ef69ec9dc93aad62e19988.zip
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 <georg.kotheimer@kernkonzept.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20201013151054.396481-1-georg.kotheimer@kernkonzept.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions