diff options
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/cpu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 069f935..497706b 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -174,9 +174,8 @@ static void mips_cpu_class_init(ObjectClass *c, void *data) CPUClass *cc = CPU_CLASS(c); DeviceClass *dc = DEVICE_CLASS(c); - mcc->parent_realize = dc->realize; - dc->realize = mips_cpu_realizefn; - + device_class_set_parent_realize(dc, mips_cpu_realizefn, + &mcc->parent_realize); mcc->parent_reset = cc->reset; cc->reset = mips_cpu_reset; |