Revision | 07ea1c631d3f10687c979543a30d13bf535414df (tree) |
---|---|
Time | 2020-02-24 23:09:50 |
Author | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
Add rx-softmmu
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Message-Id: <20190607091116.49044-17-ysato@users.sourceforge.jp>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
pick ed65c02993 target/rx: Add RX to SysEmuTarget
pick 01372568ae tests: Add rx to machine-none-test.c
[PMD: Squashed patches from Richard Henderson modifying
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
@@ -77,6 +77,8 @@ int graphic_depth = 32; | ||
77 | 77 | #define QEMU_ARCH QEMU_ARCH_PPC |
78 | 78 | #elif defined(TARGET_RISCV) |
79 | 79 | #define QEMU_ARCH QEMU_ARCH_RISCV |
80 | +#elif defined(TARGET_RX) | |
81 | +#define QEMU_ARCH QEMU_ARCH_RX | |
80 | 82 | #elif defined(TARGET_S390X) |
81 | 83 | #define QEMU_ARCH QEMU_ARCH_S390X |
82 | 84 | #elif defined(TARGET_SH4) |
@@ -4142,7 +4142,7 @@ fi | ||
4142 | 4142 | fdt_required=no |
4143 | 4143 | for target in $target_list; do |
4144 | 4144 | case $target in |
4145 | - aarch64*-softmmu|arm*-softmmu|ppc*-softmmu|microblaze*-softmmu|mips64el-softmmu|riscv*-softmmu) | |
4145 | + aarch64*-softmmu|arm*-softmmu|ppc*-softmmu|microblaze*-softmmu|mips64el-softmmu|riscv*-softmmu|rx-softmmu) | |
4146 | 4146 | fdt_required=yes |
4147 | 4147 | ;; |
4148 | 4148 | esac |
@@ -7832,6 +7832,12 @@ case "$target_name" in | ||
7832 | 7832 | mttcg=yes |
7833 | 7833 | gdb_xml_files="riscv-64bit-cpu.xml riscv-32bit-fpu.xml riscv-64bit-fpu.xml riscv-64bit-csr.xml riscv-64bit-virtual.xml" |
7834 | 7834 | ;; |
7835 | + rx) | |
7836 | + TARGET_ARCH=rx | |
7837 | + bflt="yes" | |
7838 | + target_compiler=$cross_cc_rx | |
7839 | + gdb_xml_files="rx-core.xml" | |
7840 | + ;; | |
7835 | 7841 | sh4|sh4eb) |
7836 | 7842 | TARGET_ARCH=sh4 |
7837 | 7843 | bflt="yes" |
@@ -8013,6 +8019,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do | ||
8013 | 8019 | riscv*) |
8014 | 8020 | disas_config "RISCV" |
8015 | 8021 | ;; |
8022 | + rx) | |
8023 | + disas_config "RX" | |
8024 | + ;; | |
8016 | 8025 | s390*) |
8017 | 8026 | disas_config "S390" |
8018 | 8027 | ;; |
@@ -0,0 +1,3 @@ | ||
1 | +# Default configuration for rx-softmmu | |
2 | + | |
3 | +CONFIG_RX_VIRT=y |
@@ -55,6 +55,7 @@ source nios2/Kconfig | ||
55 | 55 | source openrisc/Kconfig |
56 | 56 | source ppc/Kconfig |
57 | 57 | source riscv/Kconfig |
58 | +source rx/Kconfig | |
58 | 59 | source s390x/Kconfig |
59 | 60 | source sh4/Kconfig |
60 | 61 | source sparc/Kconfig |
@@ -26,6 +26,7 @@ | ||
26 | 26 | #pragma GCC poison TARGET_PPC |
27 | 27 | #pragma GCC poison TARGET_PPC64 |
28 | 28 | #pragma GCC poison TARGET_ABI32 |
29 | +#pragma GCC poison TARGET_RX | |
29 | 30 | #pragma GCC poison TARGET_S390X |
30 | 31 | #pragma GCC poison TARGET_SH4 |
31 | 32 | #pragma GCC poison TARGET_SPARC |
@@ -24,6 +24,7 @@ enum { | ||
24 | 24 | QEMU_ARCH_NIOS2 = (1 << 17), |
25 | 25 | QEMU_ARCH_HPPA = (1 << 18), |
26 | 26 | QEMU_ARCH_RISCV = (1 << 19), |
27 | + QEMU_ARCH_RX = (1 << 20), | |
27 | 28 | }; |
28 | 29 | |
29 | 30 | extern const uint32_t arch_type; |
@@ -26,7 +26,7 @@ | ||
26 | 26 | 'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32', |
27 | 27 | 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64', |
28 | 28 | 'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc', |
29 | - 'ppc64', 'riscv32', 'riscv64', 's390x', 'sh4', | |
29 | + 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4', | |
30 | 30 | 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32', |
31 | 31 | 'x86_64', 'xtensa', 'xtensaeb' ] } |
32 | 32 |
@@ -56,6 +56,7 @@ static struct arch2cpu cpus_map[] = { | ||
56 | 56 | { "hppa", "hppa" }, |
57 | 57 | { "riscv64", "rv64gcsu-v1.10.0" }, |
58 | 58 | { "riscv32", "rv32gcsu-v1.9.1" }, |
59 | + { "rx", "rx62n" }, | |
59 | 60 | }; |
60 | 61 | |
61 | 62 | static const char *get_cpu_model_by_arch(const char *arch) |