Re: [PULL 07/13] cpu: Use DeviceClass reset instead of a special CPUClass reset

2020-03-18 Thread Philippe Mathieu-Daudé
On 3/18/20 2:17 AM, Eduardo Habkost wrote: From: Peter Maydell The CPUClass has a 'reset' method. This is a legacy from when TYPE_CPU used not to inherit from TYPE_DEVICE. We don't need it any more, as we can simply use the TYPE_DEVICE reset. The 'cpu_reset()' function is kept as the API whi

[PULL 07/13] cpu: Use DeviceClass reset instead of a special CPUClass reset

2020-03-17 Thread Eduardo Habkost
From: Peter Maydell The CPUClass has a 'reset' method. This is a legacy from when TYPE_CPU used not to inherit from TYPE_DEVICE. We don't need it any more, as we can simply use the TYPE_DEVICE reset. The 'cpu_reset()' function is kept as the API which most places use to reset a CPU; it is now