summaryrefslogtreecommitdiffstats
path: root/hw/core/qdev-clock.c
diff options
context:
space:
mode:
authorAnup Patel2022-05-11 16:45:23 +0200
committerAlistair Francis2022-05-24 02:38:50 +0200
commit62cf02451edb1d23bc44a35aca56a8347dfebff7 (patch)
tree3357c5a8f955a3524422f60b1fe3a20602f20d33 /hw/core/qdev-clock.c
parenttarget/riscv: Fix hstatus.GVA bit setting for traps taken from HS-mode (diff)
downloadqemu-62cf02451edb1d23bc44a35aca56a8347dfebff7.tar.gz
qemu-62cf02451edb1d23bc44a35aca56a8347dfebff7.tar.xz
qemu-62cf02451edb1d23bc44a35aca56a8347dfebff7.zip
target/riscv: Set [m|s]tval for both illegal and virtual instruction traps
Currently, the [m|s]tval CSRs are set with trapping instruction encoding only for illegal instruction traps taken at the time of instruction decoding. In RISC-V world, a valid instructions might also trap as illegal or virtual instruction based to trapping bits in various CSRs (such as mstatus.TVM or hstatus.VTVM). We improve setting of [m|s]tval CSRs for all types of illegal and virtual instruction traps. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220511144528.393530-4-apatel@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/core/qdev-clock.c')
0 files changed, 0 insertions, 0 deletions