]> git.proxmox.com Git - qemu.git/blob - target-unicore32/softmmu.c
unicore32-softmmu: Add unicore32-softmmu build support
[qemu.git] / target-unicore32 / softmmu.c
1 /*
2 * Softmmu related functions
3 *
4 * Copyright (C) 2010-2012 Guan Xuetao
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation, or any later version.
9 * See the COPYING file in the top-level directory.
10 */
11 #ifdef CONFIG_USER_ONLY
12 #error This file only exist under softmmu circumstance
13 #endif
14
15 #include <cpu.h>
16
17 void switch_mode(CPUUniCore32State *env, int mode)
18 {
19 cpu_abort(env, "%s not supported yet\n", __func__);
20 }
21
22 void do_interrupt(CPUUniCore32State *env)
23 {
24 cpu_abort(env, "%s not supported yet\n", __func__);
25 }
26
27 int uc32_cpu_handle_mmu_fault(CPUUniCore32State *env, target_ulong address,
28 int access_type, int mmu_idx)
29 {
30 cpu_abort(env, "%s not supported yet\n", __func__);
31 return 1;
32 }
33
34 target_phys_addr_t cpu_get_phys_page_debug(CPUUniCore32State *env,
35 target_ulong addr)
36 {
37 cpu_abort(env, "%s not supported yet\n", __func__);
38 return addr;
39 }