target/moxie: Fix tlb_fill

We should not exit unless moxie_cpu_handle_mmu_fault has failed.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2017-11-14 11:29:34 +01:00
parent 65255e8efd
commit 1f5940e464

View File

@ -36,9 +36,8 @@ void tlb_fill(CPUState *cs, target_ulong addr, MMUAccessType access_type,
ret = moxie_cpu_handle_mmu_fault(cs, addr, access_type, mmu_idx);
if (unlikely(ret)) {
cpu_restore_state(cs, retaddr);
cpu_loop_exit_restore(cs, retaddr);
}
cpu_loop_exit(cs);
}
void helper_raise_exception(CPUMoxieState *env, int ex)