]> git.proxmox.com Git - qemu.git/blobdiff - target-openrisc/cpu.h
cpus: Pass CPUState to [qemu_]cpu_has_work()
[qemu.git] / target-openrisc / cpu.h
index a701d364a5dddc1497fd2fecea2e962132041329..d42ffb09b6af585d2e1aaa78a8bd363a7694d28c 100644 (file)
@@ -437,8 +437,10 @@ static inline int cpu_mmu_index(CPUOpenRISCState *env)
 }
 
 #define CPU_INTERRUPT_TIMER   CPU_INTERRUPT_TGT_INT_0
-static inline bool cpu_has_work(CPUOpenRISCState *env)
+static inline bool cpu_has_work(CPUState *cpu)
 {
+    CPUOpenRISCState *env = &OPENRISC_CPU(cpu)->env;
+
     return env->interrupt_request & (CPU_INTERRUPT_HARD |
                                      CPU_INTERRUPT_TIMER);
 }