target: e2k: Add tlb_fill handler.
This commit is contained in:
parent
8143c8c7e8
commit
4646e43803
|
@ -569,6 +569,9 @@ int e2k_cpu_signal_handler(int host_signum, void *pinfo, void *puc);
|
|||
int e2k_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n);
|
||||
int e2k_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n);
|
||||
void e2k_break_save_state(CPUE2KState *env);
|
||||
bool e2k_cpu_tlb_fill(CPUState *cpu, vaddr address, int size,
|
||||
MMUAccessType access_type, int mmu_idx,
|
||||
bool probe, uintptr_t retaddr);
|
||||
|
||||
#define cpu_signal_handler e2k_cpu_signal_handler
|
||||
#define cpu_list e2k_cpu_list
|
||||
|
|
|
@ -275,6 +275,19 @@ void helper_break_restore_state(CPUE2KState *env)
|
|||
ps_fill(env, true);
|
||||
}
|
||||
|
||||
bool e2k_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
|
||||
MMUAccessType access_type, int mmu_idx, bool probe, uintptr_t retaddr)
|
||||
{
|
||||
E2KCPU *cpu = E2K_CPU(cs);
|
||||
CPUE2KState *env = &cpu->env;
|
||||
|
||||
proc_chain_save(env, env->wd.size / 2);
|
||||
ps_spill(env, true, true);
|
||||
|
||||
cs->exception_index = E2K_EXCP_MAPERR;
|
||||
cpu_loop_exit_restore(cs, retaddr);
|
||||
return false;
|
||||
}
|
||||
|
||||
void helper_debug_i32(uint32_t x)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue