We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1200156 commit db02d4dCopy full SHA for db02d4d
qemu/target/avr/cpu.c
@@ -47,15 +47,14 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs, TranslationBlock *tb)
47
env->pc_w = tb->pc / 2; /* internally PC points to words */
48
}
49
50
-static void avr_cpu_reset(DeviceState *ds)
+static void avr_cpu_reset(CPUState *cs)
51
{
52
- CPUState *cs = CPU(ds);
53
AVRCPU *cpu = AVR_CPU(cs);
54
AVRCPUClass *mcc = AVR_CPU_GET_CLASS(cpu);
55
CPUAVRState *env = &cpu->env;
56
57
if (mcc->parent_reset)
58
- mcc->parent_reset(ds);
+ mcc->parent_reset(cs);
59
60
env->pc_w = 0;
61
env->sregI = 1;
0 commit comments