Signed-off-by: Richard Henderson <richard.hender...@linaro.org> --- target/alpha/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index b8a21f4e01..b52ebd7356 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -260,7 +260,9 @@ static void alpha_cpu_initfn(Object *obj) cs->env_ptr = env; tlb_flush(cs); - alpha_translate_init(); + if (tcg_enabled()) { + alpha_translate_init(); + } env->lock_addr = -1; #if defined(CONFIG_USER_ONLY) -- 2.13.6