• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョンe95af7cced496810278d5b51ba75533e919804d4 (tree)
日時2019-10-14 20:30:11
作者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

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

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

変更サマリ

差分

--- a/arch_init.c
+++ b/arch_init.c
@@ -73,6 +73,8 @@ int graphic_depth = 32;
7373 #define QEMU_ARCH QEMU_ARCH_PPC
7474 #elif defined(TARGET_RISCV)
7575 #define QEMU_ARCH QEMU_ARCH_RISCV
76+#elif defined(TARGET_RX)
77+#define QEMU_ARCH QEMU_ARCH_RX
7678 #elif defined(TARGET_S390X)
7779 #define QEMU_ARCH QEMU_ARCH_S390X
7880 #elif defined(TARGET_SH4)
--- a/configure
+++ b/configure
@@ -7521,6 +7521,11 @@ case "$target_name" in
75217521 mttcg=yes
75227522 gdb_xml_files="riscv-64bit-cpu.xml riscv-64bit-fpu.xml riscv-64bit-csr.xml"
75237523 ;;
7524+ rx)
7525+ TARGET_ARCH=rx
7526+ bflt="yes"
7527+ target_compiler=$cross_cc_rx
7528+ ;;
75247529 sh4|sh4eb)
75257530 TARGET_ARCH=sh4
75267531 bflt="yes"
@@ -7702,6 +7707,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do
77027707 riscv*)
77037708 disas_config "RISCV"
77047709 ;;
7710+ rx)
7711+ disas_config "RX"
7712+ ;;
77057713 s390*)
77067714 disas_config "S390"
77077715 ;;
--- /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
@@ -54,6 +54,7 @@ source nios2/Kconfig
5454 source openrisc/Kconfig
5555 source ppc/Kconfig
5656 source riscv/Kconfig
57+source rx/Kconfig
5758 source s390x/Kconfig
5859 source sh4/Kconfig
5960 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
@@ -21,6 +21,7 @@
2121 # is true even for "qemu-system-x86_64".
2222 #
2323 # ppcemb: dropped in 3.1
24+# rx: added in 4.2
2425 #
2526 # Since: 3.0
2627 ##
@@ -28,7 +29,7 @@
2829 'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',
2930 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64',
3031 'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc',
31- 'ppc64', 'riscv32', 'riscv64', 's390x', 'sh4',
32+ 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4',
3233 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32',
3334 'x86_64', 'xtensa', 'xtensaeb' ] }
3435
--- a/tests/machine-none-test.c
+++ b/tests/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)