mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
accel/tcg: Use libuser_ss and libsystem_ss
While some of these files are built exactly once, due to being in only libuser_ss or libsystem_ss, some of the includes that they depend on require CONFIG_USER_ONLY. So make use of the common infrastructure to allow that. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7ed79a9adb
commit
1a1567b174
1 changed files with 13 additions and 4 deletions
|
@ -1,12 +1,21 @@
|
||||||
common_ss.add(when: 'CONFIG_TCG', if_true: files(
|
if not get_option('tcg').allowed()
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
|
tcg_ss = ss.source_set()
|
||||||
|
|
||||||
|
tcg_ss.add(files(
|
||||||
'cpu-exec-common.c',
|
'cpu-exec-common.c',
|
||||||
'tcg-runtime.c',
|
'tcg-runtime.c',
|
||||||
'tcg-runtime-gvec.c',
|
'tcg-runtime-gvec.c',
|
||||||
))
|
))
|
||||||
if get_option('plugins')
|
if get_option('plugins')
|
||||||
common_ss.add(when: 'CONFIG_TCG', if_true: files('plugin-gen.c'))
|
tcg_ss.add(files('plugin-gen.c'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libuser_ss.add_all(tcg_ss)
|
||||||
|
libsystem_ss.add_all(tcg_ss)
|
||||||
|
|
||||||
tcg_specific_ss = ss.source_set()
|
tcg_specific_ss = ss.source_set()
|
||||||
tcg_specific_ss.add(files(
|
tcg_specific_ss.add(files(
|
||||||
'tcg-all.c',
|
'tcg-all.c',
|
||||||
|
@ -22,11 +31,11 @@ specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
|
||||||
'cputlb.c',
|
'cputlb.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
user_ss.add(when: ['CONFIG_TCG'], if_true: files(
|
libuser_ss.add(files(
|
||||||
'user-exec-stub.c',
|
'user-exec-stub.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
system_ss.add(when: ['CONFIG_TCG'], if_true: files(
|
libsystem_ss.add(files(
|
||||||
'icount-common.c',
|
'icount-common.c',
|
||||||
'monitor.c',
|
'monitor.c',
|
||||||
'tcg-accel-ops.c',
|
'tcg-accel-ops.c',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue