target/riscv: Adjust privilege level for HLV(X)/HSV instructions
authorGeorg Kotheimer <georg.kotheimer@kernkonzept.com>
Thu, 11 Mar 2021 10:30:05 +0000 (11:30 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 23 Mar 2021 01:54:40 +0000 (21:54 -0400)
commit90ec1cff768fcbe1fa2870d2018f378376f4f744
treea695b80676fc060d1188f3db3a610b5363356643
parent2c2e0f2842520bcd25472285cfce39696e52e662
target/riscv: Adjust privilege level for HLV(X)/HSV instructions

According to the specification the "field SPVP of hstatus controls the
privilege level of the access" for the hypervisor virtual-machine load
and store instructions HLV, HLVX and HSV.

Signed-off-by: Georg Kotheimer <georg.kotheimer@kernkonzept.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210311103005.1400718-1-georg.kotheimer@kernkonzept.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c