diff options
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c index dc5d7568ea..ef0e62195d 100644 --- a/target-sh4/cpu.c +++ b/target-sh4/cpu.c @@ -67,9 +67,11 @@ static void superh_cpu_realizefn(DeviceState *dev, Error **errp) static void superh_cpu_initfn(Object *obj) { + CPUState *cs = CPU(obj); SuperHCPU *cpu = SUPERH_CPU(obj); CPUSH4State *env = &cpu->env; + cs->env_ptr = env; cpu_exec_init(env); env->movcal_backup_tail = &(env->movcal_backup); |