]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: Trigger interrupt on MIP update asynchronously
authorAlistair Francis <Alistair.Francis@wdc.com>
Sat, 20 Apr 2019 02:26:54 +0000 (02:26 +0000)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 24 May 2019 19:09:24 +0000 (12:09 -0700)
commit0a01f2eecba47a48c9d06e3fb9acbd2a8a842cfc
treeb68ccceb76bda361e2dfedec4fe55fe34040acbe
parent356d74192a035c71a78a22d24812a6df6099ae40
target/riscv: Trigger interrupt on MIP update asynchronously

The requirement of holding the iothread_mutex is burdersome when
swapping the background and foreground registers in the Hypervisor
extension. To avoid the requrirement let's set the interrupt
asynchronously.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/cpu_helper.c
target/riscv/csr.c