Re: [PATCH v3 0/2] cpu: Clarify overloading of reset QOM methods

2020-01-18 Thread Paolo Bonzini
On 16/12/19 16:01, 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

[PATCH v3 0/2] cpu: Clarify overloading of reset QOM methods

2019-12-16 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