aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-alpha/cpu.c')
-rw-r--r--target-alpha/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-alpha/cpu.c b/target-alpha/cpu.c
index 0cdae6986f..cec9989925 100644
--- a/target-alpha/cpu.c
+++ b/target-alpha/cpu.c
@@ -233,9 +233,11 @@ static const TypeInfo ev68_cpu_type_info = {
static void alpha_cpu_initfn(Object *obj)
{
+ CPUState *cs = CPU(obj);
AlphaCPU *cpu = ALPHA_CPU(obj);
CPUAlphaState *env = &cpu->env;
+ cs->env_ptr = env;
cpu_exec_init(env);
tlb_flush(env, 1);