Re: [for-5.0 PATCH v2 0/3] cpu: Clarify overloading of reset QOM methods

2019-12-10 Thread David Hildenbrand
On 09.12.19 18:55, Greg Kurz wrote: > Each cpu subclass overloads the reset method of its parent class with > its own. But since it needs to call the parent method as well, it keeps > a parent_reset pointer to do so. This causes the same not very explicit > boiler plate to be duplicated all around

Re: [for-5.0 PATCH v2 0/3] cpu: Clarify overloading of reset QOM methods

2019-12-09 Thread Greg Kurz
On Mon, 9 Dec 2019 19:21:43 +0100 Cornelia Huck wrote: > On Mon, 09 Dec 2019 18:55:12 +0100 > Greg Kurz wrote: > > > Each cpu subclass overloads the reset method of its parent class with > > its own. But since it needs to call the parent method as well, it keeps > > a parent_reset pointer to do

Re: [for-5.0 PATCH v2 0/3] cpu: Clarify overloading of reset QOM methods

2019-12-09 Thread Cornelia Huck
On Mon, 09 Dec 2019 18:55:12 +0100 Greg Kurz wrote: > Each cpu subclass overloads the reset method of its parent class with > its own. But since it needs to call the parent method as well, it keeps > a parent_reset pointer to do so. This causes the same not very explicit > boiler plate to be dupl

[for-5.0 PATCH v2 0/3] cpu: Clarify overloading of reset QOM methods

2019-12-09 Thread Greg Kurz
Each cpu subclass overloads the reset method of its parent class with its own. But since it needs to call the parent method as well, it keeps a parent_reset pointer to do so. This causes the same not very explicit boiler plate to be duplicated all around the place: pcc->parent_reset = cc->rese