All of lore.kernel.org
 help / color / mirror / Atom feed
* CPU reset vs DeviceState reset
@ 2020-03-02 17:20 Peter Maydell
  2020-03-02 17:25 ` Peter Maydell
  2020-03-02 17:45 ` Eduardo Habkost
  0 siblings, 2 replies; 10+ messages in thread
From: Peter Maydell @ 2020-03-02 17:20 UTC (permalink / raw)
  To: QEMU Developers

Hi; I've just noticed that although TYPE_CPU is a subclass of
TYPE_DEVICE, it seems to implement its own reset method
('reset' field in CPUClass struct) rather than just using the
DeviceClass's 'reset'.

Is there a reason for doing this, or is it just historical legacy
from TYPE_CPU originally not being a subclass of TYPE_DEVICE?

I ask because I'd like to be able to use 3-phase reset in the Arm
CPU, and I'm wondering whether it would be better to make TYPE_CPU
just use Device's reset system, or to treat TYPE_CPU as its own
base class and implement Resettable there. The former seems more
straightforward, unless I'm missing something that means we
really do need to have the reset method be different.

thanks
-- PMM


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-03-02 22:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-02 17:20 CPU reset vs DeviceState reset Peter Maydell
2020-03-02 17:25 ` Peter Maydell
2020-03-02 17:45 ` Eduardo Habkost
2020-03-02 18:19   ` Philippe Mathieu-Daudé
2020-03-02 18:42     ` Peter Maydell
2020-03-02 21:42       ` Eduardo Habkost
2020-03-02 18:41   ` Peter Maydell
2020-03-02 21:40     ` Eduardo Habkost
2020-03-02 21:55       ` Peter Maydell
2020-03-02 22:12         ` Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.