aboutsummaryrefslogtreecommitdiff
path: root/target/lm32/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/lm32/cpu.c')
-rw-r--r--target/lm32/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/lm32/cpu.c b/target/lm32/cpu.c
index 57c50c1578..a14191236f 100644
--- a/target/lm32/cpu.c
+++ b/target/lm32/cpu.c
@@ -142,11 +142,10 @@ static void lm32_cpu_realizefn(DeviceState *dev, Error **errp)
static void lm32_cpu_initfn(Object *obj)
{
- CPUState *cs = CPU(obj);
LM32CPU *cpu = LM32_CPU(obj);
CPULM32State *env = &cpu->env;
- cs->env_ptr = env;
+ cpu_set_cpustate_pointers(cpu);
env->flags = 0;
}