summaryrefslogtreecommitdiffstats
path: root/target/unicore32/helper.c
diff options
context:
space:
mode:
authorRichard Henderson2019-04-03 02:34:20 +0200
committerRichard Henderson2019-05-10 20:12:50 +0200
commitc5d417da4a5be88e8da9523dcc38d2efc1898081 (patch)
tree30b81352c163a2de5aa74ae793398b63378c18e6 /target/unicore32/helper.c
parenttarget/tricore: Convert to CPUClass::tlb_fill (diff)
downloadqemu-c5d417da4a5be88e8da9523dcc38d2efc1898081.tar.gz
qemu-c5d417da4a5be88e8da9523dcc38d2efc1898081.tar.xz
qemu-c5d417da4a5be88e8da9523dcc38d2efc1898081.zip
target/unicore32: Convert to CPUClass::tlb_fill
Remove the user-only functions, as we no longer have a user-only config. Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/unicore32/helper.c')
-rw-r--r--target/unicore32/helper.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c
index a5ff2ddb74..0d4914b48d 100644
--- a/target/unicore32/helper.c
+++ b/target/unicore32/helper.c
@@ -215,29 +215,6 @@ void helper_cp1_putc(target_ulong x)
}
#endif
-#ifdef CONFIG_USER_ONLY
-void switch_mode(CPUUniCore32State *env, int mode)
-{
- UniCore32CPU *cpu = uc32_env_get_cpu(env);
-
- if (mode != ASR_MODE_USER) {
- cpu_abort(CPU(cpu), "Tried to switch out of user mode\n");
- }
-}
-
-void uc32_cpu_do_interrupt(CPUState *cs)
-{
- cpu_abort(cs, "NO interrupt in user mode\n");
-}
-
-int uc32_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size,
- int access_type, int mmu_idx)
-{
- cpu_abort(cs, "NO mmu fault in user mode\n");
- return 1;
-}
-#endif
-
bool uc32_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
{
if (interrupt_request & CPU_INTERRUPT_HARD) {