forked from awilliam/qemu-vfio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
10 changed files
with
106 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Default configuration for unicore32-softmmu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# For UniCore32 machines and boards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
obj-y += translate.o op_helper.o helper.o cpu.o | ||
obj-$(CONFIG_SOFTMMU) += machine.o | ||
obj-$(CONFIG_SOFTMMU) += machine.o softmmu.o | ||
|
||
$(obj)/op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Generic machine functions for UniCore32 ISA | ||
* | ||
* 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. | ||
*/ | ||
#include "hw/hw.h" | ||
|
||
void cpu_save(QEMUFile *f, void *opaque) | ||
{ | ||
hw_error("%s not supported yet.\n", __func__); | ||
} | ||
|
||
int cpu_load(QEMUFile *f, void *opaque, int version_id) | ||
{ | ||
hw_error("%s not supported yet.\n", __func__); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |