diff options
author | Rajnesh Kanwal | 2020-02-23 11:28:06 +0100 |
---|---|---|
committer | Palmer Dabbelt | 2020-03-17 01:03:51 +0100 |
commit | c5969a3a3c2cb9ea02ffb7e86acb059d3cf8c264 (patch) | |
tree | 081053039d7613158c1214c406369afe4a336c35 /hw/misc/ivshmem.c | |
parent | gitlab-ci.yml: Add jobs to build OpenSBI firmware binaries (diff) | |
download | qemu-c5969a3a3c2cb9ea02ffb7e86acb059d3cf8c264.tar.gz qemu-c5969a3a3c2cb9ea02ffb7e86acb059d3cf8c264.tar.xz qemu-c5969a3a3c2cb9ea02ffb7e86acb059d3cf8c264.zip |
target/riscv: Fix VS mode interrupts forwarding.
Currently riscv_cpu_local_irq_pending is used to find out pending
interrupt and VS mode interrupts are being shifted to represent
S mode interrupts in this function. So when the cause returned by
this function is passed to riscv_cpu_do_interrupt to actually
forward the interrupt, the VS mode forwarding check does not work
as intended and interrupt is actually forwarded to hypervisor. This
patch fixes this issue.
Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal49@gmail.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'hw/misc/ivshmem.c')
0 files changed, 0 insertions, 0 deletions