diff options
Diffstat (limited to 'target-unicore32/softmmu.c')
-rw-r--r-- | target-unicore32/softmmu.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/target-unicore32/softmmu.c b/target-unicore32/softmmu.c new file mode 100644 index 0000000000..6fec77e0b0 --- /dev/null +++ b/target-unicore32/softmmu.c @@ -0,0 +1,39 @@ +/* + * Softmmu related functions + * + * Copyright (C) 2010-2012 Guan Xuetao + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation, or any later version. + * See the COPYING file in the top-level directory. + */ +#ifdef CONFIG_USER_ONLY +#error This file only exist under softmmu circumstance +#endif + +#include <cpu.h> + +void switch_mode(CPUUniCore32State *env, int mode) +{ + cpu_abort(env, "%s not supported yet\n", __func__); +} + +void do_interrupt(CPUUniCore32State *env) +{ + cpu_abort(env, "%s not supported yet\n", __func__); +} + +int uc32_cpu_handle_mmu_fault(CPUUniCore32State *env, target_ulong address, + int access_type, int mmu_idx) +{ + cpu_abort(env, "%s not supported yet\n", __func__); + return 1; +} + +target_phys_addr_t cpu_get_phys_page_debug(CPUUniCore32State *env, + target_ulong addr) +{ + cpu_abort(env, "%s not supported yet\n", __func__); + return addr; +} |