X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=target-openrisc%2Finterrupt_helper.c;h=844648f780a85ad3274ebb6aa6a9fd2264a0ea91;hb=d51552176a2ab5e80a211514aa1339fe2575ec2a;hp=a176441b01e3339ae2e5dfe5832afcb2a162d25b;hpb=7cc2a8b14a363777e7d5b7d102176fba0cf27667;p=qemu.git diff --git a/target-openrisc/interrupt_helper.c b/target-openrisc/interrupt_helper.c index a176441b0..844648f78 100644 --- a/target-openrisc/interrupt_helper.c +++ b/target-openrisc/interrupt_helper.c @@ -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; }