diff options
Diffstat (limited to 'target/tricore')
-rw-r--r-- | target/tricore/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/tricore/cpu.c b/target/tricore/cpu.c index df807c1d74..85bc9f03a1 100644 --- a/target/tricore/cpu.c +++ b/target/tricore/cpu.c @@ -153,8 +153,7 @@ static void tricore_cpu_class_init(ObjectClass *c, void *data) device_class_set_parent_realize(dc, tricore_cpu_realizefn, &mcc->parent_realize); - mcc->parent_reset = cc->reset; - cc->reset = tricore_cpu_reset; + cpu_class_set_parent_reset(cc, tricore_cpu_reset, &mcc->parent_reset); cc->class_by_name = tricore_cpu_class_by_name; cc->has_work = tricore_cpu_has_work; |