]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target/loongarch: move translate modules to tcg/
authorSong Gao <gaosong@loongson.cn>
Tue, 2 Jan 2024 02:02:00 +0000 (10:02 +0800)
committerSong Gao <gaosong@loongson.cn>
Sat, 6 Jan 2024 02:18:52 +0000 (10:18 +0800)
Introduce the target/loongarch/tcg directory. Its purpose is to hold the TCG
code that is selected by CONFIG_TCG

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240102020200.3462097-2-gaosong@loongson.cn>

24 files changed:
target/loongarch/meson.build
target/loongarch/tcg/constant_timer.c [moved from target/loongarch/constant_timer.c with 100% similarity]
target/loongarch/tcg/csr_helper.c [moved from target/loongarch/csr_helper.c with 100% similarity]
target/loongarch/tcg/fpu_helper.c [moved from target/loongarch/fpu_helper.c with 100% similarity]
target/loongarch/tcg/insn_trans/trans_arith.c.inc [moved from target/loongarch/insn_trans/trans_arith.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_atomic.c.inc [moved from target/loongarch/insn_trans/trans_atomic.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_bit.c.inc [moved from target/loongarch/insn_trans/trans_bit.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_branch.c.inc [moved from target/loongarch/insn_trans/trans_branch.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_extra.c.inc [moved from target/loongarch/insn_trans/trans_extra.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_farith.c.inc [moved from target/loongarch/insn_trans/trans_farith.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_fcmp.c.inc [moved from target/loongarch/insn_trans/trans_fcmp.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_fcnv.c.inc [moved from target/loongarch/insn_trans/trans_fcnv.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_fmemory.c.inc [moved from target/loongarch/insn_trans/trans_fmemory.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_fmov.c.inc [moved from target/loongarch/insn_trans/trans_fmov.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_memory.c.inc [moved from target/loongarch/insn_trans/trans_memory.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_privileged.c.inc [moved from target/loongarch/insn_trans/trans_privileged.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_shift.c.inc [moved from target/loongarch/insn_trans/trans_shift.c.inc with 100% similarity]
target/loongarch/tcg/insn_trans/trans_vec.c.inc [moved from target/loongarch/insn_trans/trans_vec.c.inc with 100% similarity]
target/loongarch/tcg/iocsr_helper.c [moved from target/loongarch/iocsr_helper.c with 100% similarity]
target/loongarch/tcg/meson.build [new file with mode: 0644]
target/loongarch/tcg/op_helper.c [moved from target/loongarch/op_helper.c with 100% similarity]
target/loongarch/tcg/tlb_helper.c [moved from target/loongarch/tlb_helper.c with 100% similarity]
target/loongarch/tcg/translate.c [moved from target/loongarch/translate.c with 100% similarity]
target/loongarch/tcg/vec_helper.c [moved from target/loongarch/vec_helper.c with 100% similarity]

index b3a0fb12fbf8f7908c7a838dd471de45fffdb50c..e84e4c51f49d55e765fd6b7606c6057fe0736893 100644 (file)
@@ -5,29 +5,16 @@ loongarch_ss.add(files(
   'cpu.c',
   'gdbstub.c',
 ))
-loongarch_tcg_ss = ss.source_set()
-loongarch_tcg_ss.add(gen)
-loongarch_tcg_ss.add(files(
-  'fpu_helper.c',
-  'op_helper.c',
-  'translate.c',
-  'vec_helper.c',
-))
-loongarch_tcg_ss.add(zlib)
 
 loongarch_system_ss = ss.source_set()
 loongarch_system_ss.add(files(
   'loongarch-qmp-cmds.c',
   'machine.c',
-  'tlb_helper.c',
-  'constant_timer.c',
-  'csr_helper.c',
-  'iocsr_helper.c',
 ))
 
 common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
 
-loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
+subdir('tcg')
 
 target_arch += {'loongarch': loongarch_ss}
 target_system_arch += {'loongarch': loongarch_system_ss}
diff --git a/target/loongarch/tcg/meson.build b/target/loongarch/tcg/meson.build
new file mode 100644 (file)
index 0000000..bdf34f9
--- /dev/null
@@ -0,0 +1,19 @@
+if 'CONFIG_TCG' not in config_all_accel
+  subdir_done()
+endif
+
+loongarch_ss.add([zlib, gen])
+
+loongarch_ss.add(files(
+  'fpu_helper.c',
+  'op_helper.c',
+  'translate.c',
+  'vec_helper.c',
+))
+
+loongarch_system_ss.add(files(
+  'constant_timer.c',
+  'csr_helper.c',
+  'iocsr_helper.c',
+  'tlb_helper.c',
+))