Browse Source

target/s390x: start moving TCG-only code to tcg/

move everything related to translate, as well as HELPER code in tcg/

mmu_helper.c stays put for now, as it contains both TCG and KVM code.

After the reshuffling, update MAINTAINERS accordingly.
Make use of the new directory:

target/s390x/tcg/

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Cho, Yu-Chen <acho@suse.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210707105324.23400-8-acho@suse.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Cho, Yu-Chen 4 years ago
parent
commit
c9274b6bf0

+ 1 - 0
MAINTAINERS

@@ -297,6 +297,7 @@ M: Richard Henderson <richard.henderson@linaro.org>
 M: David Hildenbrand <david@redhat.com>
 S: Maintained
 F: target/s390x/
+F: target/s390x/tcg
 F: hw/s390x/
 F: disas/s390.c
 F: tests/tcg/s390x/

+ 1 - 1
hw/s390x/tod-tcg.c

@@ -16,7 +16,7 @@
 #include "qemu/cutils.h"
 #include "qemu/module.h"
 #include "cpu.h"
-#include "tcg_s390x.h"
+#include "tcg/tcg_s390x.h"
 
 static void qemu_s390_tod_get(const S390TODState *td, S390TOD *tod,
                               Error **errp)

+ 1 - 1
include/hw/s390x/tod.h

@@ -12,7 +12,7 @@
 #define HW_S390_TOD_H
 
 #include "hw/qdev-core.h"
-#include "target/s390x/s390-tod.h"
+#include "tcg/s390-tod.h"
 #include "qom/object.h"
 
 typedef struct S390TOD {

+ 1 - 1
target/s390x/interrupt.c

@@ -15,7 +15,7 @@
 #include "sysemu/kvm.h"
 #include "sysemu/tcg.h"
 #include "hw/s390x/ioinst.h"
-#include "tcg_s390x.h"
+#include "tcg/tcg_s390x.h"
 #if !defined(CONFIG_USER_ONLY)
 #include "hw/s390x/s390_flic.h"
 #endif

+ 1 - 1
target/s390x/machine.c

@@ -19,7 +19,7 @@
 #include "s390x-internal.h"
 #include "kvm_s390x.h"
 #include "migration/vmstate.h"
-#include "tcg_s390x.h"
+#include "tcg/tcg_s390x.h"
 #include "sysemu/kvm.h"
 #include "sysemu/tcg.h"
 

+ 2 - 15
target/s390x/meson.build

@@ -8,21 +8,6 @@ s390x_ss.add(files(
   'interrupt.c',
 ))
 
-s390x_ss.add(when: 'CONFIG_TCG', if_true: files(
-  'cc_helper.c',
-  'crypto_helper.c',
-  'excp_helper.c',
-  'fpu_helper.c',
-  'int_helper.c',
-  'mem_helper.c',
-  'misc_helper.c',
-  'translate.c',
-  'vec_fpu_helper.c',
-  'vec_helper.c',
-  'vec_int_helper.c',
-  'vec_string_helper.c',
-))
-
 s390x_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
 
 gen_features = executable('gen-features', 'gen-features.c', native: true,
@@ -60,6 +45,8 @@ endif
 
 s390x_user_ss = ss.source_set()
 
+subdir('tcg')
+
 target_arch += {'s390x': s390x_ss}
 target_softmmu_arch += {'s390x': s390x_softmmu_ss}
 target_user_arch += {'s390x': s390x_user_ss}

+ 0 - 0
target/s390x/cc_helper.c → target/s390x/tcg/cc_helper.c


+ 0 - 0
target/s390x/crypto_helper.c → target/s390x/tcg/crypto_helper.c


+ 0 - 0
target/s390x/excp_helper.c → target/s390x/tcg/excp_helper.c


+ 0 - 0
target/s390x/fpu_helper.c → target/s390x/tcg/fpu_helper.c


+ 0 - 0
target/s390x/insn-data.def → target/s390x/tcg/insn-data.def


+ 0 - 0
target/s390x/insn-format.def → target/s390x/tcg/insn-format.def


+ 0 - 0
target/s390x/int_helper.c → target/s390x/tcg/int_helper.c


+ 0 - 0
target/s390x/mem_helper.c → target/s390x/tcg/mem_helper.c


+ 14 - 0
target/s390x/tcg/meson.build

@@ -0,0 +1,14 @@
+s390x_ss.add(when: 'CONFIG_TCG', if_true: files(
+  'cc_helper.c',
+  'crypto_helper.c',
+  'excp_helper.c',
+  'fpu_helper.c',
+  'int_helper.c',
+  'mem_helper.c',
+  'misc_helper.c',
+  'translate.c',
+  'vec_fpu_helper.c',
+  'vec_helper.c',
+  'vec_int_helper.c',
+  'vec_string_helper.c',
+))

+ 0 - 0
target/s390x/misc_helper.c → target/s390x/tcg/misc_helper.c


+ 0 - 0
target/s390x/s390-tod.h → target/s390x/tcg/s390-tod.h


+ 0 - 0
target/s390x/tcg_s390x.h → target/s390x/tcg/tcg_s390x.h


+ 0 - 0
target/s390x/translate.c → target/s390x/tcg/translate.c


+ 0 - 0
target/s390x/translate_vx.c.inc → target/s390x/tcg/translate_vx.c.inc


+ 0 - 0
target/s390x/vec.h → target/s390x/tcg/vec.h


+ 0 - 0
target/s390x/vec_fpu_helper.c → target/s390x/tcg/vec_fpu_helper.c


+ 0 - 0
target/s390x/vec_helper.c → target/s390x/tcg/vec_helper.c


+ 0 - 0
target/s390x/vec_int_helper.c → target/s390x/tcg/vec_int_helper.c


+ 0 - 0
target/s390x/vec_string_helper.c → target/s390x/tcg/vec_string_helper.c