qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu ./cpu-exec.c ./monitor.c target-ppc/helper...
@ 2005-11-23 22:05 Fabrice Bellard
  2005-11-26 12:51 ` J. Mayer
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Bellard @ 2005-11-23 22:05 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/cvsroot/qemu
Module name:	qemu
Branch: 	
Changes by:	Fabrice Bellard <bellard@savannah.gnu.org>	05/11/23 22:05:28

Modified files:
	.              : cpu-exec.c monitor.c 
	target-ppc     : helper.c translate.c 

Log message:
	halt state support for ppc

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/cpu-exec.c.diff?tr1=1.63&tr2=1.64&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/monitor.c.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/helper.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/translate.c.diff?tr1=1.39&tr2=1.40&r1=text&r2=text

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

* Re: [Qemu-devel] qemu ./cpu-exec.c ./monitor.c target-ppc/helper...
  2005-11-23 22:05 [Qemu-devel] qemu ./cpu-exec.c ./monitor.c target-ppc/helper Fabrice Bellard
@ 2005-11-26 12:51 ` J. Mayer
  0 siblings, 0 replies; 2+ messages in thread
From: J. Mayer @ 2005-11-26 12:51 UTC (permalink / raw)
  To: qemu-devel

On Wed, 2005-11-23 at 17:05 -0500, Fabrice Bellard wrote:
> CVSROOT:	/cvsroot/qemu
> Module name:	qemu
> Branch: 	
> Changes by:	Fabrice Bellard <bellard@savannah.gnu.org>	05/11/23 22:05:28
> 
> Modified files:
> 	.              : cpu-exec.c monitor.c 
> 	target-ppc     : helper.c translate.c 
> 
> Log message:
> 	halt state support for ppc
> 
> CVSWeb URLs:
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/cpu-exec.c.diff?tr1=1.63&tr2=1.64&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/monitor.c.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/helper.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/translate.c.diff?tr1=1.39&tr2=1.40&r1=text&r2=text

One should beware before merging this patch in its local repository.

It was rejected in the past and is broken for many reasons:
- MSR_POW bit _does not_ mean "enter halt state". It means "enable power
management".
  What the PowerPC core would do when this bit is set is implementation
dependant.
  For example, PowerPC 750 (the one currently emulated by Qemu targets)
will enter halt
  state only if some bits in the HID0 SPR are set.
- the cpu state cannot be changed outside of the PowerPC emulation code.
  Setting the MSR_POW bit to zero is buggy because we loose useful
information to decide
  wether the CPU has to go back in running state (if it's really halted)
or has to ignore the
  raised exception.

-- 
J. Mayer <l_indien@magic.fr>
Never organized

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

end of thread, other threads:[~2005-11-26 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 22:05 [Qemu-devel] qemu ./cpu-exec.c ./monitor.c target-ppc/helper Fabrice Bellard
2005-11-26 12:51 ` J. Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).