-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to hw_arch, each architecture defines two sourceset which are placed in dictionaries target_arch and target_softmmu_arch. These are then picked up from there when building the per-emulator static_library. Signed-off-by: Marc-André Lureau <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information
Showing
62 changed files
with
595 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
libdecnumber = files( | ||
'decContext.c', | ||
'decNumber.c', | ||
'dpd/decimal128.c', | ||
'dpd/decimal32.c', | ||
'dpd/decimal64.c', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -647,10 +647,15 @@ libqemuutil = static_library('qemuutil', | |
qemuutil = declare_dependency(link_with: libqemuutil, | ||
sources: genh + version_res) | ||
|
||
decodetree = generator(find_program('scripts/decodetree.py'), | ||
output: 'decode-@[email protected]', | ||
arguments: ['@INPUT@', '@EXTRA_ARGS@', '-o', '@OUTPUT@']) | ||
|
||
subdir('audio') | ||
subdir('io') | ||
subdir('chardev') | ||
subdir('fsdev') | ||
subdir('libdecnumber') | ||
subdir('target') | ||
subdir('dump') | ||
|
||
|
@@ -787,6 +792,9 @@ foreach target : target_dirs | |
if target.endswith('-softmmu') | ||
qemu_target_name = 'qemu-system-' + target_name | ||
target_type='system' | ||
t = target_softmmu_arch[arch].apply(config_target, strict: false) | ||
arch_srcs += t.sources() | ||
|
||
hw_dir = target_name == 'sparc64' ? 'sparc64' : arch | ||
hw = hw_arch[hw_dir].apply(config_target, strict: false) | ||
arch_srcs += hw.sources() | ||
|
@@ -807,6 +815,9 @@ foreach target : target_dirs | |
) | ||
endif | ||
|
||
t = target_arch[arch].apply(config_target, strict: false) | ||
arch_srcs += t.sources() | ||
|
||
target_common = common_ss.apply(config_target, strict: false) | ||
objects = common_all.extract_objects(target_common.sources()) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
alpha_ss = ss.source_set() | ||
alpha_ss.add(files( | ||
'cpu.c', | ||
'fpu_helper.c', | ||
'gdbstub.c', | ||
'helper.c', | ||
'int_helper.c', | ||
'mem_helper.c', | ||
'sys_helper.c', | ||
'translate.c', | ||
'vax_helper.c', | ||
)) | ||
|
||
alpha_softmmu_ss = ss.source_set() | ||
alpha_softmmu_ss.add(files('machine.c')) | ||
|
||
target_arch += {'alpha': alpha_ss} | ||
target_softmmu_arch += {'alpha': alpha_softmmu_ss} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
gen = [ | ||
decodetree.process('sve.decode', extra_args: '--decode=disas_sve'), | ||
decodetree.process('neon-shared.decode', extra_args: '--static-decode=disas_neon_shared'), | ||
decodetree.process('neon-dp.decode', extra_args: '--static-decode=disas_neon_dp'), | ||
decodetree.process('neon-ls.decode', extra_args: '--static-decode=disas_neon_ls'), | ||
decodetree.process('vfp.decode', extra_args: '--static-decode=disas_vfp'), | ||
decodetree.process('vfp-uncond.decode', extra_args: '--static-decode=disas_vfp_uncond'), | ||
decodetree.process('a32.decode', extra_args: '--static-decode=disas_a32'), | ||
decodetree.process('a32-uncond.decode', extra_args: '--static-decode=disas_a32_uncond'), | ||
decodetree.process('t32.decode', extra_args: '--static-decode=disas_t32'), | ||
decodetree.process('t16.decode', extra_args: ['-w', '16', '--static-decode=disas_t16']), | ||
] | ||
|
||
arm_ss = ss.source_set() | ||
arm_ss.add(gen) | ||
arm_ss.add(files( | ||
'cpu.c', | ||
'crypto_helper.c', | ||
'debug_helper.c', | ||
'gdbstub.c', | ||
'helper.c', | ||
'iwmmxt_helper.c', | ||
'm_helper.c', | ||
'neon_helper.c', | ||
'op_helper.c', | ||
'tlb_helper.c', | ||
'translate.c', | ||
'vec_helper.c', | ||
'vfp_helper.c', | ||
'cpu_tcg.c', | ||
)) | ||
arm_ss.add(zlib) | ||
|
||
arm_ss.add(when: 'CONFIG_TCG', if_true: files('arm-semi.c')) | ||
|
||
kvm_ss = ss.source_set() | ||
kvm_ss.add(when: 'TARGET_AARCH64', if_true: files('kvm64.c'), if_false: files('kvm32.c')) | ||
arm_ss.add_all(when: 'CONFIG_KVM', if_true: kvm_ss) | ||
arm_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c')) | ||
|
||
arm_ss.add(when: 'TARGET_AARCH64', if_true: files( | ||
'cpu64.c', | ||
'gdbstub64.c', | ||
'helper-a64.c', | ||
'mte_helper.c', | ||
'pauth_helper.c', | ||
'sve_helper.c', | ||
'translate-a64.c', | ||
'translate-sve.c', | ||
)) | ||
|
||
arm_softmmu_ss = ss.source_set() | ||
arm_softmmu_ss.add(files( | ||
'arch_dump.c', | ||
'arm-powerctl.c', | ||
'machine.c', | ||
'monitor.c', | ||
'psci.c', | ||
)) | ||
|
||
target_arch += {'arm': arm_ss} | ||
target_softmmu_arch += {'arm': arm_softmmu_ss} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
gen = [ | ||
decodetree.process('insn.decode', extra_args: [ '--decode', 'decode_insn', | ||
'--insnwidth', '16' ]) | ||
] | ||
|
||
avr_ss = ss.source_set() | ||
avr_softmmu_ss = ss.source_set() | ||
|
||
avr_ss.add(gen) | ||
avr_ss.add(files( | ||
'translate.c', | ||
'helper.c', | ||
'cpu.c', | ||
'gdbstub.c', | ||
'disas.c')) | ||
|
||
avr_softmmu_ss.add(files('machine.c')) | ||
|
||
target_arch += {'avr': avr_ss} | ||
target_softmmu_arch += {'avr': avr_softmmu_ss} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cris_ss = ss.source_set() | ||
cris_ss.add(files( | ||
'cpu.c', | ||
'gdbstub.c', | ||
'helper.c', | ||
'op_helper.c', | ||
'translate.c', | ||
)) | ||
|
||
cris_softmmu_ss = ss.source_set() | ||
cris_softmmu_ss.add(files('mmu.c', 'machine.c')) | ||
|
||
target_arch += {'cris': cris_ss} | ||
target_softmmu_arch += {'cris': cris_softmmu_ss} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
gen = decodetree.process('insns.decode') | ||
|
||
hppa_ss = ss.source_set() | ||
hppa_ss.add(gen) | ||
hppa_ss.add(files( | ||
'cpu.c', | ||
'gdbstub.c', | ||
'helper.c', | ||
'int_helper.c', | ||
'mem_helper.c', | ||
'op_helper.c', | ||
'translate.c', | ||
)) | ||
|
||
hppa_softmmu_ss = ss.source_set() | ||
hppa_softmmu_ss.add(files('machine.c')) | ||
|
||
target_arch += {'hppa': hppa_ss} | ||
target_softmmu_arch += {'hppa': hppa_softmmu_ss} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.