qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle
@ 2006-09-20 19:25 Blue Swirl
  2006-09-21  8:00 ` Joerg Platte
  0 siblings, 1 reply; 4+ messages in thread
From: Blue Swirl @ 2006-09-20 19:25 UTC (permalink / raw)
  To: aurelien, fabrice, paul; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

>Please find below a patch that "works". It is probably wrong as I wrote it
>by copying code from other architectures and trying until it works. Well
>I am however convinced of two things:
>  - "return EXCP_HALTED;" causes the crash. By removing this line qemu
>    doesn't crash anymore, but the patch does not work as expected
>    (freeze of the target).
>  - The interrupt should be cleared, if not the target freeze.
>
>Now the host CPU is not used at 100% when the Sparc target is idle. I am
>using it for about one our with a Debian unstable, and I am writing this
>mail from this emulated system.

Great work! I can also confirm that it works and CPU is halted correctly.

Please apply.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

[-- Attachment #2: slavio_halt.diff.bz2 --]
[-- Type: application/x-bzip, Size: 575 bytes --]

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

* Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle
  2006-09-20 19:25 [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle Blue Swirl
@ 2006-09-21  8:00 ` Joerg Platte
  2006-09-21  8:53   ` Aurelien Jarno
  0 siblings, 1 reply; 4+ messages in thread
From: Joerg Platte @ 2006-09-21  8:00 UTC (permalink / raw)
  To: qemu-devel

Am Mittwoch, 20. September 2006 21:25 schrieb Blue Swirl:

> Great work! I can also confirm that it works and CPU is halted correctly.

Here it doesn't work with linux 2.6.13. Is there a special configuration 
option or kernel version required to make it work? 

regards,
Jörg

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

* Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle
  2006-09-21  8:00 ` Joerg Platte
@ 2006-09-21  8:53   ` Aurelien Jarno
  2006-09-21  9:38     ` Joerg Platte
  0 siblings, 1 reply; 4+ messages in thread
From: Aurelien Jarno @ 2006-09-21  8:53 UTC (permalink / raw)
  To: jplatte, qemu-devel

Joerg Platte wrote:
> Am Mittwoch, 20. September 2006 21:25 schrieb Blue Swirl:
> 
>> Great work! I can also confirm that it works and CPU is halted correctly.
> 
> Here it doesn't work with linux 2.6.13. Is there a special configuration 
> option or kernel version required to make it work? 

You also need to update openbios from the latest SVN. Then prtconf 
should report a device called "power-management" (and not 
"xxxpower-management").

-- 
   .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
  : :' :  Debian developer           | Electrical Engineer
  `. `'   aurel32@debian.org         | aurelien@aurel32.net
    `-    people.debian.org/~aurel32 | www.aurel32.net

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

* Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle
  2006-09-21  8:53   ` Aurelien Jarno
@ 2006-09-21  9:38     ` Joerg Platte
  0 siblings, 0 replies; 4+ messages in thread
From: Joerg Platte @ 2006-09-21  9:38 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: qemu-devel

Am Donnerstag, 21. September 2006 10:53 schrieb Aurelien Jarno:

> You also need to update openbios from the latest SVN. Then prtconf
> should report a device called "power-management" (and not
> "xxxpower-management").

Thank you for this information. Now it works and helps to save a lot of 
battery power of my notebook :)

regards,
Jörg

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

end of thread, other threads:[~2006-09-21  9:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 19:25 [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle Blue Swirl
2006-09-21  8:00 ` Joerg Platte
2006-09-21  8:53   ` Aurelien Jarno
2006-09-21  9:38     ` Joerg Platte

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).