diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-04-02 15:39:50 +0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-05-10 11:12:50 -0700 |
commit | 5d0044212c375c0696baef7bba13699277dac5b5 (patch) | |
tree | eb0ad2690200d264f0ca937958fc762d75304e00 /target/i386/mem_helper.c | |
parent | 3c7bef03c54f9b731539b8037ba0160402a3a2a6 (diff) | |
download | qemu-5d0044212c375c0696baef7bba13699277dac5b5.zip qemu-5d0044212c375c0696baef7bba13699277dac5b5.tar.gz qemu-5d0044212c375c0696baef7bba13699277dac5b5.tar.bz2 |
target/i386: Convert to CPUClass::tlb_fill
We do not support probing, but we do not need it yet either.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/i386/mem_helper.c')
-rw-r--r-- | target/i386/mem_helper.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/target/i386/mem_helper.c b/target/i386/mem_helper.c index 6cc53bc..1885df2 100644 --- a/target/i386/mem_helper.c +++ b/target/i386/mem_helper.c @@ -191,24 +191,3 @@ void helper_boundl(CPUX86State *env, target_ulong a0, int v) raise_exception_ra(env, EXCP05_BOUND, GETPC()); } } - -#if !defined(CONFIG_USER_ONLY) -/* try to fill the TLB and return an exception if error. If retaddr is - * NULL, it means that the function was called in C code (i.e. not - * from generated code or from helper.c) - */ -/* XXX: fix it to restore all registers */ -void tlb_fill(CPUState *cs, target_ulong addr, int size, - MMUAccessType access_type, int mmu_idx, uintptr_t retaddr) -{ - X86CPU *cpu = X86_CPU(cs); - CPUX86State *env = &cpu->env; - int ret; - - env->retaddr = retaddr; - ret = x86_cpu_handle_mmu_fault(cs, addr, size, access_type, mmu_idx); - if (ret) { - raise_exception_err_ra(env, cs->exception_index, env->error_code, retaddr); - } -} -#endif |