summary refs log tree commit diff stats
path: root/target-openrisc/interrupt_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-openrisc/interrupt_helper.c')
-rw-r--r--target-openrisc/interrupt_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-openrisc/interrupt_helper.c b/target-openrisc/interrupt_helper.c
index 844648f780..819405701d 100644
--- a/target-openrisc/interrupt_helper.c
+++ b/target-openrisc/interrupt_helper.c
@@ -51,7 +51,7 @@ void HELPER(rfe)(CPUOpenRISCState *env)
     }
 
     if (need_flush_tlb) {
-        tlb_flush(&cpu->env, 1);
+        tlb_flush(cs, 1);
     }
 #endif
     cs->interrupt_request |= CPU_INTERRUPT_EXITTB;