]> git.proxmox.com Git - qemu.git/blobdiff - target-sparc/cpu.h
Merge branch 'trivial-patches' of git://github.com/stefanha/qemu
[qemu.git] / target-sparc / cpu.h
index 7c689ee3bb9c1c61aabba493b297ec9c8360d7a8..042d52a31033674f9b3fbdc2d3ca7c325e117616 100644 (file)
@@ -761,8 +761,10 @@ static inline bool tb_am_enabled(int tb_flags)
 #endif
 }
 
-static inline bool cpu_has_work(CPUSPARCState *env1)
+static inline bool cpu_has_work(CPUState *cpu)
 {
+    CPUSPARCState *env1 = &SPARC_CPU(cpu)->env;
+
     return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
            cpu_interrupts_enabled(env1);
 }