• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision07ea1c631d3f10687c979543a30d13bf535414df (tree)
Time2020-02-24 23:09:50
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

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

qapi/common.json and tests/machine-none-test.c]

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Change Summary

Incremental Difference

--- a/arch_init.c
+++ b/arch_init.c
@@ -77,6 +77,8 @@ int graphic_depth = 32;
7777 #define QEMU_ARCH QEMU_ARCH_PPC
7878 #elif defined(TARGET_RISCV)
7979 #define QEMU_ARCH QEMU_ARCH_RISCV
80+#elif defined(TARGET_RX)
81+#define QEMU_ARCH QEMU_ARCH_RX
8082 #elif defined(TARGET_S390X)
8183 #define QEMU_ARCH QEMU_ARCH_S390X
8284 #elif defined(TARGET_SH4)
--- a/configure
+++ b/configure
@@ -4142,7 +4142,7 @@ fi
41424142 fdt_required=no
41434143 for target in $target_list; do
41444144 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)
41464146 fdt_required=yes
41474147 ;;
41484148 esac
@@ -7832,6 +7832,12 @@ case "$target_name" in
78327832 mttcg=yes
78337833 gdb_xml_files="riscv-64bit-cpu.xml riscv-32bit-fpu.xml riscv-64bit-fpu.xml riscv-64bit-csr.xml riscv-64bit-virtual.xml"
78347834 ;;
7835+ rx)
7836+ TARGET_ARCH=rx
7837+ bflt="yes"
7838+ target_compiler=$cross_cc_rx
7839+ gdb_xml_files="rx-core.xml"
7840+ ;;
78357841 sh4|sh4eb)
78367842 TARGET_ARCH=sh4
78377843 bflt="yes"
@@ -8013,6 +8019,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do
80138019 riscv*)
80148020 disas_config "RISCV"
80158021 ;;
8022+ rx)
8023+ disas_config "RX"
8024+ ;;
80168025 s390*)
80178026 disas_config "S390"
80188027 ;;
--- /dev/null
+++ b/default-configs/rx-softmmu.mak
@@ -0,0 +1,3 @@
1+# Default configuration for rx-softmmu
2+
3+CONFIG_RX_VIRT=y
--- a/hw/Kconfig
+++ b/hw/Kconfig
@@ -55,6 +55,7 @@ source nios2/Kconfig
5555 source openrisc/Kconfig
5656 source ppc/Kconfig
5757 source riscv/Kconfig
58+source rx/Kconfig
5859 source s390x/Kconfig
5960 source sh4/Kconfig
6061 source sparc/Kconfig
--- a/include/exec/poison.h
+++ b/include/exec/poison.h
@@ -26,6 +26,7 @@
2626 #pragma GCC poison TARGET_PPC
2727 #pragma GCC poison TARGET_PPC64
2828 #pragma GCC poison TARGET_ABI32
29+#pragma GCC poison TARGET_RX
2930 #pragma GCC poison TARGET_S390X
3031 #pragma GCC poison TARGET_SH4
3132 #pragma GCC poison TARGET_SPARC
--- a/include/sysemu/arch_init.h
+++ b/include/sysemu/arch_init.h
@@ -24,6 +24,7 @@ enum {
2424 QEMU_ARCH_NIOS2 = (1 << 17),
2525 QEMU_ARCH_HPPA = (1 << 18),
2626 QEMU_ARCH_RISCV = (1 << 19),
27+ QEMU_ARCH_RX = (1 << 20),
2728 };
2829
2930 extern const uint32_t arch_type;
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -26,7 +26,7 @@
2626 'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',
2727 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64',
2828 'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc',
29- 'ppc64', 'riscv32', 'riscv64', 's390x', 'sh4',
29+ 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4',
3030 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32',
3131 'x86_64', 'xtensa', 'xtensaeb' ] }
3232
--- a/tests/qtest/machine-none-test.c
+++ b/tests/qtest/machine-none-test.c
@@ -56,6 +56,7 @@ static struct arch2cpu cpus_map[] = {
5656 { "hppa", "hppa" },
5757 { "riscv64", "rv64gcsu-v1.10.0" },
5858 { "riscv32", "rv32gcsu-v1.9.1" },
59+ { "rx", "rx62n" },
5960 };
6061
6162 static const char *get_cpu_model_by_arch(const char *arch)