bf9ab9d131
Since the SEMIHOSTING feature is optional, we need a stub to link when it is disabled. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240717105723.58965-3-philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240718094523.1198645-10-alex.bennee@linaro.org>
23 lines
439 B
Meson
23 lines
439 B
Meson
m68k_ss = ss.source_set()
|
|
m68k_ss.add(files(
|
|
'cpu.c',
|
|
'fpu_helper.c',
|
|
'gdbstub.c',
|
|
'helper.c',
|
|
'op_helper.c',
|
|
'softfloat.c',
|
|
'translate.c',
|
|
))
|
|
|
|
m68k_system_ss = ss.source_set()
|
|
m68k_system_ss.add(files(
|
|
'monitor.c'
|
|
))
|
|
m68k_system_ss.add(when: ['CONFIG_SEMIHOSTING'],
|
|
if_true: files('m68k-semi.c'),
|
|
if_false: files('semihosting-stub.c')
|
|
)
|
|
|
|
target_arch += {'m68k': m68k_ss}
|
|
target_system_arch += {'m68k': m68k_system_ss}
|