[Qemu-devel] [PATCH 3/9] sparc: move do_interrupt to helper.c

2011-06-19 Thread Blue Swirl
do_interrupt() was mixing CPUState pointer passed from caller and global env (AREG0). Fix by moving the function to helper.c. Introduce a helper for calling change_pstate() safely from outside of execution context. Signed-off-by: Blue Swirl --- target-sparc/cpu.h |4 + target-sparc/ex

[Qemu-devel] [PATCH 3/9] sparc: move do_interrupt to helper.c

2011-05-22 Thread Blue Swirl
do_interrupt() was mixing CPUState pointer passed from caller and global env (AREG0). Fix by moving the function to helper.c. Introduce a helper for calling change_pstate() safely from outside of execution context. Signed-off-by: Blue Swirl --- target-sparc/cpu.h |4 + target-sparc/ex