Skip to content

Commit

Permalink
target/alpha: Only build sys_helper.c on system emulation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd committed Jan 19, 2024
1 parent 0180444 commit 6adcba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions target/alpha/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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}
3 changes: 0 additions & 3 deletions target/alpha/sys_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@


/* PALcode support special instructions */
#ifndef CONFIG_USER_ONLY
void helper_tbia(CPUAlphaState *env)
{
tlb_flush(env_cpu(env));
Expand Down Expand Up @@ -74,5 +73,3 @@ void helper_set_alarm(CPUAlphaState *env, uint64_t expire)
timer_del(cpu->alarm_timer);
}
}

#endif /* CONFIG_USER_ONLY */

0 comments on commit 6adcba7

Please sign in to comment.