diff options
author | Igor V. Kovalenko | 2010-01-07 21:28:26 +0100 |
---|---|---|
committer | Blue Swirl | 2010-01-08 18:16:45 +0100 |
commit | 2df6c2d0de31461f18d97f8a4d122bdb003297db (patch) | |
tree | 3f7fb084757c0288da9b33644245be2322fbcf65 /target-sparc/exec.h | |
parent | sparc64: add macros to deal with softint and timer interrupt (diff) | |
download | qemu-2df6c2d0de31461f18d97f8a4d122bdb003297db.tar.gz qemu-2df6c2d0de31461f18d97f8a4d122bdb003297db.tar.xz qemu-2df6c2d0de31461f18d97f8a4d122bdb003297db.zip |
sparc64: move cpu_interrupts_enabled to cpu.h
- to be used by cpu_check_irqs
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/exec.h')
-rw-r--r-- | target-sparc/exec.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/target-sparc/exec.h b/target-sparc/exec.h index e120d6fed4..3e021e93cf 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -24,19 +24,6 @@ static inline void regs_to_env(void) /* op_helper.c */ void do_interrupt(CPUState *env); -static inline int cpu_interrupts_enabled(CPUState *env1) -{ -#if !defined (TARGET_SPARC64) - if (env1->psret != 0) - return 1; -#else - if (env1->pstate & PS_IE) - return 1; -#endif - - return 0; -} - static inline int cpu_has_work(CPUState *env1) { return (env1->interrupt_request & CPU_INTERRUPT_HARD) && |