qemu/target-sparc
Peter Maydell 4552a09dd4 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>
2016-01-16 12:01:23 +00:00
..
cc_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
cpu-qom.h softmmu: make do_unaligned_access a method of CPU 2014-06-05 16:10:31 +02:00
cpu.c disas: QOMify sparc specific disas setup 2015-10-22 15:49:40 +02:00
cpu.h target-sparc: Split cpu_put_psr into side-effect and no-side-effect parts 2016-01-16 12:01:23 +00:00
fop_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper.c target-sparc: implement NPT timer bit 2016-01-07 12:21:06 +00:00
helper.h target-sparc: implement NPT timer bit 2016-01-07 12:21:06 +00:00
int32_helper.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
int64_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
ldst_helper.c target-sparc: is_translating_asi() is TARGET_SPARC64 only 2015-01-21 16:18:01 +00:00
machine.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
Makefile.objs monitor: remove target-specific code from monitor.c 2015-09-16 17:33:32 +02:00
mmu_helper.c tlb: Add "ifetch" argument to cpu_mmu_index() 2015-09-11 08:15:28 -07:00
monitor.c monitor: remove target-specific code from monitor.c 2015-09-16 17:33:32 +02:00
TODO fix spelling in target sub directory 2011-12-02 10:50:57 +00:00
translate.c target-sparc: implement NPT timer bit 2016-01-07 12:21:06 +00:00
vis_helper.c target-sparc: fix 32-bit truncation in fpackfix 2015-11-26 16:47:44 +01:00
win_helper.c target-sparc: Split cpu_put_psr into side-effect and no-side-effect parts 2016-01-16 12:01:23 +00:00