リビジョン | 3aa2bca04d2f24c4087a3eb51f1ebc2ca78fb006 (tree) |
---|---|
日時 | 2019-06-16 22:31:41 |
作者 | Yoshinori Sato <ysato@user...> |
コミッター | 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>
@@ -73,6 +73,8 @@ int graphic_depth = 32; | ||
73 | 73 | #define QEMU_ARCH QEMU_ARCH_PPC |
74 | 74 | #elif defined(TARGET_RISCV) |
75 | 75 | #define QEMU_ARCH QEMU_ARCH_RISCV |
76 | +#elif defined(TARGET_RX) | |
77 | +#define QEMU_ARCH QEMU_ARCH_RX | |
76 | 78 | #elif defined(TARGET_S390X) |
77 | 79 | #define QEMU_ARCH QEMU_ARCH_S390X |
78 | 80 | #elif defined(TARGET_SH4) |
@@ -7595,6 +7595,11 @@ case "$target_name" in | ||
7595 | 7595 | gdb_xml_files="riscv-64bit-cpu.xml riscv-64bit-fpu.xml riscv-64bit-csr.xml" |
7596 | 7596 | target_compiler=$cross_cc_riscv64 |
7597 | 7597 | ;; |
7598 | + rx) | |
7599 | + TARGET_ARCH=rx | |
7600 | + bflt="yes" | |
7601 | + target_compiler=$cross_cc_rx | |
7602 | + ;; | |
7598 | 7603 | sh4|sh4eb) |
7599 | 7604 | TARGET_ARCH=sh4 |
7600 | 7605 | bflt="yes" |
@@ -7815,6 +7820,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do | ||
7815 | 7820 | riscv*) |
7816 | 7821 | disas_config "RISCV" |
7817 | 7822 | ;; |
7823 | + rx) | |
7824 | + disas_config "RX" | |
7825 | + ;; | |
7818 | 7826 | s390*) |
7819 | 7827 | disas_config "S390" |
7820 | 7828 | ;; |
@@ -0,0 +1,3 @@ | ||
1 | +# Default configuration for rx-softmmu | |
2 | + | |
3 | +CONFIG_RX_VIRT=y |
@@ -54,6 +54,7 @@ source nios2/Kconfig | ||
54 | 54 | source openrisc/Kconfig |
55 | 55 | source ppc/Kconfig |
56 | 56 | source riscv/Kconfig |
57 | +source rx/Kconfig | |
57 | 58 | source s390x/Kconfig |
58 | 59 | source sh4/Kconfig |
59 | 60 | 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 |
@@ -25,6 +25,7 @@ enum { | ||
25 | 25 | QEMU_ARCH_NIOS2 = (1 << 17), |
26 | 26 | QEMU_ARCH_HPPA = (1 << 18), |
27 | 27 | QEMU_ARCH_RISCV = (1 << 19), |
28 | + QEMU_ARCH_RX = (1 << 20), | |
28 | 29 | }; |
29 | 30 | |
30 | 31 | extern const uint32_t arch_type; |
@@ -183,6 +183,7 @@ | ||
183 | 183 | # is true even for "qemu-system-x86_64". |
184 | 184 | # |
185 | 185 | # ppcemb: dropped in 3.1 |
186 | +# rx: added in 4.1 | |
186 | 187 | # |
187 | 188 | # Since: 3.0 |
188 | 189 | ## |
@@ -190,6 +191,6 @@ | ||
190 | 191 | 'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32', |
191 | 192 | 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64', |
192 | 193 | 'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc', |
193 | - 'ppc64', 'riscv32', 'riscv64', 's390x', 'sh4', | |
194 | + 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4', | |
194 | 195 | 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32', |
195 | 196 | 'x86_64', 'xtensa', 'xtensaeb' ] } |
@@ -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) |