]> git.proxmox.com Git - mirror_qemu.git/commit
target-sparc: Split cpu_put_psr into side-effect and no-side-effect parts
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 11 Jan 2016 12:40:24 +0000 (12:40 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 16 Jan 2016 12:01:23 +0000 (12:01 +0000)
commit4552a09dd4055c806b7df8c595dc0fb8951834be
treeae7e3bb8cc9064843c9aaf2c01c2500147d3a3cf
parent365162f7c09a428f16d2278e025328e73539ae8b
target-sparc: Split cpu_put_psr into side-effect and no-side-effect parts

For inbound migration we really want to be able to set the PSR without
having any side effects, but cpu_put_psr() calls cpu_check_irqs() which
might try to deliver CPU interrupts. Split cpu_put_psr() into the
no-side-effect and side-effect parts.

This includes reordering the cpu_check_irqs() to the end of cpu_put_psr(),
because that function may actually end up calling cpu_interrupt(), which
does not seem like a good thing to happen in the middle of updating the PSR.

Suggested-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target-sparc/cpu.h
target-sparc/win_helper.c