]> git.proxmox.com Git - mirror_qemu.git/commit
sparc/sparc64: grab BQL before calling cpu_check_irqs
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 1 Mar 2017 13:20:02 +0000 (13:20 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 9 Mar 2017 10:41:38 +0000 (10:41 +0000)
commit5ee5993001cf32addb86a92e2ae8cb090fbc1462
tree5c54fe7fef9dddfcc18ec6c56ae2e17903e2b726
parentc34c762015fec023c3ea5cf3629cbac462a80973
sparc/sparc64: grab BQL before calling cpu_check_irqs

IRQ modification is part of device emulation and should be done while
the BQL is held to prevent races when MTTCG is enabled. This adds
assertions in the hw emulation layer and wraps the calls from helpers
in the BQL.

Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
hw/sparc/sun4m.c
hw/sparc64/sparc64.c
target/sparc/int64_helper.c
target/sparc/win_helper.c