diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-07 11:48:39 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-19 12:28:59 +0100 |
commit | 6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd (patch) | |
tree | e6edae4a0018e84fc53164970dc630a23b012776 | |
parent | 0180444806f5809b3bacd3284c47c8b7c29fd3a5 (diff) | |
download | qemu-6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd.zip qemu-6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd.tar.gz qemu-6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd.tar.bz2 |
target/alpha: Only build sys_helper.c on system emulation
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231207105426.49339-3-philmd@linaro.org>
-rw-r--r-- | target/alpha/meson.build | 6 | ||||
-rw-r--r-- | target/alpha/sys_helper.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/target/alpha/meson.build b/target/alpha/meson.build index ea252c9..7dbbd55 100644 --- a/target/alpha/meson.build +++ b/target/alpha/meson.build @@ -7,13 +7,15 @@ alpha_ss.add(files( 'clk_helper.c', 'int_helper.c', 'mem_helper.c', - 'sys_helper.c', 'translate.c', 'vax_helper.c', )) alpha_system_ss = ss.source_set() -alpha_system_ss.add(files('machine.c')) +alpha_system_ss.add(files( + 'machine.c', + 'sys_helper.c', +)) target_arch += {'alpha': alpha_ss} target_system_arch += {'alpha': alpha_system_ss} diff --git a/target/alpha/sys_helper.c b/target/alpha/sys_helper.c index 98d9a0f..768116e 100644 --- a/target/alpha/sys_helper.c +++ b/target/alpha/sys_helper.c @@ -28,7 +28,6 @@ /* PALcode support special instructions */ -#ifndef CONFIG_USER_ONLY void helper_tbia(CPUAlphaState *env) { tlb_flush(env_cpu(env)); @@ -74,5 +73,3 @@ void helper_set_alarm(CPUAlphaState *env, uint64_t expire) timer_del(cpu->alarm_timer); } } - -#endif /* CONFIG_USER_ONLY */ |