]> git.proxmox.com Git - qemu.git/blobdiff - target-openrisc/interrupt_helper.c
openrisc-timer: Reduce overhead, Separate clock update functions
[qemu.git] / target-openrisc / interrupt_helper.c
index 79f5afed440d80a47c670ce69801df404e58bc04..844648f780a85ad3274ebb6aa6a9fd2264a0ea91 100644 (file)
@@ -23,7 +23,8 @@
 
 void HELPER(rfe)(CPUOpenRISCState *env)
 {
-    OpenRISCCPU *cpu = OPENRISC_CPU(ENV_GET_CPU(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;
 }