On Fri, 25 Oct 2024 at 15:49, Helge Deller <del...@gmx.de> wrote: > > > On 10/25/24 16:12, Peter Maydell wrote: > > A summary of those TODOs and other oddities I have noticed but not > > tried to tackle is:> > > * hppa really ought to implement a CPU reset method > > * alpha also doesn't implement CPU reset > > I used the alpha code as template to implement the hppa machine. > That's probably why the CPU reset method is missing for both :-) > > The TODO about implementing: ? > resettable_class_set_parent_phases(rc, NULL, hppa_cpu_reset_hold, > NULL,...)...
Yes, basically. The reset method should restore all the state of the CPU to what it was when QEMU started. Typically you put an end_reset_fields marker in the CPU state struct so you can memset() everything up to that point to zero, and then manually reset anything else that needs special handling. thanks -- PMM