target-alpha: Implement TLB flush primitives.

Expose these via MTPR, more or less like the real HW does.

Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Richard Henderson 2011-04-18 20:01:20 -07:00 committed by Richard Henderson
parent e5214853ea
commit 3b4fefd6e6
3 changed files with 34 additions and 12 deletions

View file

@ -1205,6 +1205,16 @@ void helper_hw_ret (uint64_t a)
swap_shadow_regs(env);
}
}
void helper_tbia(void)
{
tlb_flush(env, 1);
}
void helper_tbis(uint64_t p)
{
tlb_flush_page(env, p);
}
#endif
/*****************************************************************************/
@ -1335,5 +1345,4 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr)
}
env = saved_env;
}
#endif