mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/alpha: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace alpha_env_get_cpu with env_archcpu. The combination CPU(alpha_env_get_cpu) should have used ENV_GET_CPU to begin; use env_cpu now. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
083dc73d7a
commit
1c7ad26000
4 changed files with 8 additions and 15 deletions
|
@ -44,17 +44,17 @@ uint64_t helper_load_pcc(CPUAlphaState *env)
|
|||
#ifndef CONFIG_USER_ONLY
|
||||
void helper_tbia(CPUAlphaState *env)
|
||||
{
|
||||
tlb_flush(CPU(alpha_env_get_cpu(env)));
|
||||
tlb_flush(env_cpu(env));
|
||||
}
|
||||
|
||||
void helper_tbis(CPUAlphaState *env, uint64_t p)
|
||||
{
|
||||
tlb_flush_page(CPU(alpha_env_get_cpu(env)), p);
|
||||
tlb_flush_page(env_cpu(env), p);
|
||||
}
|
||||
|
||||
void helper_tb_flush(CPUAlphaState *env)
|
||||
{
|
||||
tb_flush(CPU(alpha_env_get_cpu(env)));
|
||||
tb_flush(env_cpu(env));
|
||||
}
|
||||
|
||||
void helper_halt(uint64_t restart)
|
||||
|
@ -78,7 +78,7 @@ uint64_t helper_get_walltime(void)
|
|||
|
||||
void helper_set_alarm(CPUAlphaState *env, uint64_t expire)
|
||||
{
|
||||
AlphaCPU *cpu = alpha_env_get_cpu(env);
|
||||
AlphaCPU *cpu = env_archcpu(env);
|
||||
|
||||
if (expire) {
|
||||
env->alarm_expire = expire;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue