Skip to content

Commit db02d4d

Browse files
committed
AVR: fix cpu_reset() prototype.
Signed-off-by: Glenn Baker <[email protected]>
1 parent 1200156 commit db02d4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qemu/target/avr/cpu.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,14 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs, TranslationBlock *tb)
4747
env->pc_w = tb->pc / 2; /* internally PC points to words */
4848
}
4949

50-
static void avr_cpu_reset(DeviceState *ds)
50+
static void avr_cpu_reset(CPUState *cs)
5151
{
52-
CPUState *cs = CPU(ds);
5352
AVRCPU *cpu = AVR_CPU(cs);
5453
AVRCPUClass *mcc = AVR_CPU_GET_CLASS(cpu);
5554
CPUAVRState *env = &cpu->env;
5655

5756
if (mcc->parent_reset)
58-
mcc->parent_reset(ds);
57+
mcc->parent_reset(cs);
5958

6059
env->pc_w = 0;
6160
env->sregI = 1;

0 commit comments

Comments
 (0)