]> git.proxmox.com Git - qemu.git/commitdiff
sparc64: move cpu_interrupts_enabled to cpu.h
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Thu, 7 Jan 2010 20:28:26 +0000 (23:28 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 8 Jan 2010 17:16:45 +0000 (17:16 +0000)
- 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>
target-sparc/cpu.h
target-sparc/exec.h

index 0f0e38cf2c745d036b8e94cb5af450f8243dd9ad..e5b282d39105e43d2283bba097f3f291b7e3a79b 100644 (file)
@@ -564,6 +564,19 @@ static inline int cpu_mmu_index(CPUState *env1)
 #endif
 }
 
+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_fpu_enabled(CPUState *env1)
 {
 #if defined(CONFIG_USER_ONLY)
index e120d6fed4c867f60f8d09a3ece8831e25235fe5..3e021e93cfde2eaf3ae14f53229d62abe5b9fefc 100644 (file)
@@ -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) &&