summaryrefslogtreecommitdiffstats
path: root/target/tricore/op_helper.c
diff options
context:
space:
mode:
authorRichard Henderson2019-04-03 02:27:29 +0200
committerRichard Henderson2019-05-10 20:12:50 +0200
commit68d6eee73c0a0ea38660fb41f805dd2ec5209b89 (patch)
tree0f7b21d11335693eb440b1f9de025639904ea22f /target/tricore/op_helper.c
parenttarget/tilegx: Convert to CPUClass::tlb_fill (diff)
downloadqemu-68d6eee73c0a0ea38660fb41f805dd2ec5209b89.tar.gz
qemu-68d6eee73c0a0ea38660fb41f805dd2ec5209b89.tar.xz
qemu-68d6eee73c0a0ea38660fb41f805dd2ec5209b89.zip
target/tricore: Convert to CPUClass::tlb_fill
Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/tricore/op_helper.c')
-rw-r--r--target/tricore/op_helper.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c
index ed9dc0c83e..601e92f92a 100644
--- a/target/tricore/op_helper.c
+++ b/target/tricore/op_helper.c
@@ -2793,29 +2793,3 @@ uint32_t helper_psw_read(CPUTriCoreState *env)
{
return psw_read(env);
}
-
-
-static inline void QEMU_NORETURN do_raise_exception_err(CPUTriCoreState *env,
- uint32_t exception,
- int error_code,
- uintptr_t pc)
-{
- CPUState *cs = CPU(tricore_env_get_cpu(env));
- cs->exception_index = exception;
- env->error_code = error_code;
- /* now we have a real cpu fault */
- cpu_loop_exit_restore(cs, pc);
-}
-
-void tlb_fill(CPUState *cs, target_ulong addr, int size,
- MMUAccessType access_type, int mmu_idx, uintptr_t retaddr)
-{
- int ret;
- ret = cpu_tricore_handle_mmu_fault(cs, addr, access_type, mmu_idx);
- if (ret) {
- TriCoreCPU *cpu = TRICORE_CPU(cs);
- CPUTriCoreState *env = &cpu->env;
- do_raise_exception_err(env, cs->exception_index,
- env->error_code, retaddr);
- }
-}