mirror of https://github.com/xemu-project/xemu.git
target/loongarch: move translate modules to tcg/
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>
This commit is contained in:
parent
beb60920a1
commit
5c23704e47
|
@ -5,29 +5,16 @@ loongarch_ss.add(files(
|
||||||
'cpu.c',
|
'cpu.c',
|
||||||
'gdbstub.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 = ss.source_set()
|
||||||
loongarch_system_ss.add(files(
|
loongarch_system_ss.add(files(
|
||||||
'loongarch-qmp-cmds.c',
|
'loongarch-qmp-cmds.c',
|
||||||
'machine.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])
|
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_arch += {'loongarch': loongarch_ss}
|
||||||
target_system_arch += {'loongarch': loongarch_system_ss}
|
target_system_arch += {'loongarch': loongarch_system_ss}
|
||||||
|
|
|
@ -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',
|
||||||
|
))
|
Loading…
Reference in New Issue