diff options
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/cpu.c b/target-mips/cpu.c index 09d61723c5..4d62031c36 100644 --- a/target-mips/cpu.c +++ b/target-mips/cpu.c @@ -55,9 +55,11 @@ static void mips_cpu_realizefn(DeviceState *dev, Error **errp) static void mips_cpu_initfn(Object *obj) { + CPUState *cs = CPU(obj); MIPSCPU *cpu = MIPS_CPU(obj); CPUMIPSState *env = &cpu->env; + cs->env_ptr = env; cpu_exec_init(env); if (tcg_enabled()) { |