OSDN Git Service

target/riscv: Use background registers also for MSTATUS_MPV
authorGeorg Kotheimer <georg.kotheimer@kernkonzept.com>
Thu, 11 Mar 2021 10:30:36 +0000 (11:30 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 23 Mar 2021 01:54:40 +0000 (21:54 -0400)
commitdb9ab38b81058b41e5f469165067feea46762eee
tree5c516e847992578958b66c421d001c68a114393d
parente89b631cf44d590dbd2c250358f4130f64b5d890
target/riscv: Use background registers also for MSTATUS_MPV

The current condition for the use of background registers only
considers the hypervisor load and store instructions,
but not accesses from M mode via MSTATUS_MPRV+MPV.

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