diff options
Diffstat (limited to 'target/avr/cpu.c')
-rw-r--r-- | target/avr/cpu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/avr/cpu.c b/target/avr/cpu.c index fa0f8e0e80..0f4596932b 100644 --- a/target/avr/cpu.c +++ b/target/avr/cpu.c @@ -203,9 +203,7 @@ static void avr_cpu_class_init(ObjectClass *oc, void *data) CPUClass *cc = CPU_CLASS(oc); AVRCPUClass *mcc = AVR_CPU_CLASS(oc); - mcc->parent_realize = dc->realize; - dc->realize = avr_cpu_realizefn; - + device_class_set_parent_realize(dc, avr_cpu_realizefn, &mcc->parent_realize); device_class_set_parent_reset(dc, avr_cpu_reset, &mcc->parent_reset); cc->class_by_name = avr_cpu_class_by_name; |