diff options
author | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2012-08-10 14:42:21 +0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-08-11 09:36:55 +0000 |
commit | 4f23a1e645d4bfba620a63ba2c54c1813bcbfb63 (patch) | |
tree | 4d54c02296aeea93038a9122db42834529232273 /target-unicore32/softmmu.c | |
parent | 3d1d9652978ac5a32a0beb4bdf6065ca39440d89 (diff) |
unicore32-softmmu: Add unicore32-softmmu build support
This patch adds unicore32-softmmu build support, include configure,
makefile, arch_init, and all missing functions needed by softmmu.
Although all missing functions are empty, unicore32-softmmu could
be build successfully.
By 20120804: change QEMU_ARCH_UNICORE32 to 0x4000
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
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; +} |