All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] ARMCPU: Halting a CPU from Device Land
@ 2012-06-18  7:22 Peter Crosthwaite
  2012-06-18 10:07 ` Andreas Färber
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Crosthwaite @ 2012-06-18  7:22 UTC (permalink / raw)
  To: qemu-devel@nongnu.org Developers, Andreas Färber
  Cc: Peter Maydell, Anthony Liguori, Michal Simek, Paolo Bonzini,
	Edgar E. Iglesias, John Williams

Hi Andreas,

For the Xilinx Zynq platform, we need to be able to halt a CPU from a
device (the zynq_slcr). E.G, if I write a 1 to a register bit in my
device, then that device effects a halt of a CPU. Looking at the QOM
stuff the API for a CPU is (include/qemu/cpu.h):

typedef struct CPUClass {
    /*< private >*/
    ObjectClass parent_class;
    /*< public >*/

    void (*reset)(CPUState *cpu);
} CPUClass;

The only API function is to reset a CPU. Thats means that if I link up
my CPU to my device the only thing it can do is reset the CPU? Are
there plans to extend this API to include some common functions such
as halting and resuming etc? How hard is this to do in a generic (non
ARM) way?

Peter,

Can it be done is an ARM specific way? Is there a one line killer to
halt an ARM cpu that we could add the to ARMCPU API?

Regards,
Peter

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

end of thread, other threads:[~2012-06-18 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  7:22 [Qemu-devel] [RFC] ARMCPU: Halting a CPU from Device Land Peter Crosthwaite
2012-06-18 10:07 ` Andreas Färber
2012-06-18 11:36   ` Peter Crosthwaite

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.