sparc: move do_interrupt to helper.c
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 15 May 2011 16:11:04 +0000 (16:11 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 26 Jun 2011 18:25:17 +0000 (18:25 +0000)
commitcbff292939eb0021828505bb53c4d70f55334dd0
tree8f43dd971ebde9ad16e51a609f2f972e1a154642
parent9073944b29456199d45da454999353de7cba9a4a
sparc: move do_interrupt to helper.c

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 <blauwirbel@gmail.com>
target-sparc/cpu.h
target-sparc/exec.h
target-sparc/helper.c
target-sparc/op_helper.c