]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/lm32/milkymist.c
cpu: Pass CPUState to cpu_interrupt()
[mirror_qemu.git] / hw / lm32 / milkymist.c
index 9ff6d2885463730dca47fc493ebadc5d49c3a370..b347cf964cb206cbb97e54a65b9bd108fa8cd7a2 100644 (file)
@@ -47,11 +47,10 @@ typedef struct {
 static void cpu_irq_handler(void *opaque, int irq, int level)
 {
     LM32CPU *cpu = opaque;
-    CPULM32State *env = &cpu->env;
     CPUState *cs = CPU(cpu);
 
     if (level) {
-        cpu_interrupt(env, CPU_INTERRUPT_HARD);
+        cpu_interrupt(cs, CPU_INTERRUPT_HARD);
     } else {
         cpu_reset_interrupt(cs, CPU_INTERRUPT_HARD);
     }