diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2022-05-11 20:15:23 +0530 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2022-05-24 10:38:50 +1000 |
| commit | 62cf02451edb1d23bc44a35aca56a8347dfebff7 (patch) | |
| tree | 3357c5a8f955a3524422f60b1fe3a20602f20d33 /hw/core/loader.c | |
| parent | 24826da0eeacb27a5da6be764c8e853b2cede25b (diff) | |
| download | focaccia-qemu-62cf02451edb1d23bc44a35aca56a8347dfebff7.tar.gz focaccia-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/loader.c')
0 files changed, 0 insertions, 0 deletions