]> git.proxmox.com Git - qemu.git/blobdiff - target-openrisc/interrupt_helper.c
Merge remote-tracking branch 'cohuck/virtio-ccw-upstr' into staging
[qemu.git] / target-openrisc / interrupt_helper.c
index a176441b01e3339ae2e5dfe5832afcb2a162d25b..844648f780a85ad3274ebb6aa6a9fd2264a0ea91 100644 (file)
@@ -24,6 +24,7 @@
 void HELPER(rfe)(CPUOpenRISCState *env)
 {
     OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
+    CPUState *cs = CPU(cpu);
 #ifndef CONFIG_USER_ONLY
     int need_flush_tlb = (cpu->env.sr & (SR_SM | SR_IME | SR_DME)) ^
                          (cpu->env.esr & (SR_SM | SR_IME | SR_DME));
@@ -53,5 +54,5 @@ void HELPER(rfe)(CPUOpenRISCState *env)
         tlb_flush(&cpu->env, 1);
     }
 #endif
-    cpu->env.interrupt_request |= CPU_INTERRUPT_EXITTB;
+    cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
 }