diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-05-15 16:11:04 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-06-26 18:25:17 +0000 |
commit | e67768d0f13c78144f17bcca8a64b9b812918198 (patch) | |
tree | 8f43dd971ebde9ad16e51a609f2f972e1a154642 /target-sparc/exec.h | |
parent | fa3c9559dbb102340cd1e0b1428e192fed4b0ee3 (diff) |
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>
Diffstat (limited to 'target-sparc/exec.h')
-rw-r--r-- | target-sparc/exec.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target-sparc/exec.h b/target-sparc/exec.h index f5c221e48c..becdaf5bf3 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -13,8 +13,6 @@ register struct CPUSPARCState *env asm(AREG0); #endif /* !defined(CONFIG_USER_ONLY) */ /* op_helper.c */ -void do_interrupt(CPUState *env); - static inline int cpu_has_work(CPUState *env1) { return (env1->interrupt_request & CPU_INTERRUPT_HARD) && |