]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: Fix VS mode interrupts forwarding.
authorRajnesh Kanwal <rajnesh.kanwal49@gmail.com>
Sun, 23 Feb 2020 10:28:06 +0000 (15:28 +0500)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 17 Mar 2020 00:03:51 +0000 (17:03 -0700)
commitc5969a3a3c2cb9ea02ffb7e86acb059d3cf8c264
tree081053039d7613158c1214c406369afe4a336c35
parentc6fc0fc1a71a0cb09b472cf36dded3c52bd77880
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>
target/riscv/cpu_helper.c