aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/translate.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r--target-sparc/translate.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 41decb18ff..bcc810b208 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -650,7 +650,8 @@ static void disas_sparc_insn(DisasContext * dc)
}
goto jmp_insn;
case 0x3b: /* flush */
- /* nothing to do */
+ gen_op_add_T1_T0();
+ gen_op_flush_T0();
break;
case 0x3c: /* save */
save_state(dc);
@@ -878,3 +879,9 @@ target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
{
return addr;
}
+
+void helper_flush(target_ulong addr)
+{
+ addr &= ~7;
+ tb_invalidate_page_range(addr, addr + 8);
+}