aboutsummaryrefslogtreecommitdiff
path: root/target/cris/helper.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-09-14 16:27:10 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-11-02 07:00:52 -0400
commit5753605412c194a0368b892d540b9971cd3a1907 (patch)
tree8a3658489dc8cd3cc291a9da904de427d900c57a /target/cris/helper.c
parent9b12b6b44250c23cd29161ca7007559e22beaf94 (diff)
downloadqemu-5753605412c194a0368b892d540b9971cd3a1907.zip
qemu-5753605412c194a0368b892d540b9971cd3a1907.tar.gz
qemu-5753605412c194a0368b892d540b9971cd3a1907.tar.bz2
target/cris: Make cris_cpu_tlb_fill sysemu only
The fallback code in cpu_loop_exit_sigsegv is sufficient for cris linux-user. Remove the code from cpu_loop that handled the unnamed 0xaa exception. This makes all of the code in helper.c sysemu only, so remove the ifdefs and move the file to cris_softmmu_ss. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/cris/helper.c')
-rw-r--r--target/cris/helper.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/target/cris/helper.c b/target/cris/helper.c
index 36926fa..a0d6ecd 100644
--- a/target/cris/helper.c
+++ b/target/cris/helper.c
@@ -39,22 +39,6 @@
#define D_LOG(...) do { } while (0)
#endif
-#if defined(CONFIG_USER_ONLY)
-
-bool cris_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
- MMUAccessType access_type, int mmu_idx,
- bool probe, uintptr_t retaddr)
-{
- CRISCPU *cpu = CRIS_CPU(cs);
-
- cs->exception_index = 0xaa;
- cpu->env.pregs[PR_EDA] = address;
- cpu_loop_exit_restore(cs, retaddr);
-}
-
-#else /* !CONFIG_USER_ONLY */
-
-
static void cris_shift_ccs(CPUCRISState *env)
{
uint32_t ccs;
@@ -304,5 +288,3 @@ bool cris_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
return ret;
}
-
-#endif /* !CONFIG_USER_ONLY */