Skip to contentSkip to conversation

qemu-system-sparc uses all host cpu whiletargetsystem is idle

Qemu-devel Blue Swirl 3 participants 4 messages Sep 20, 2006 – Sep 21, 2006

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw
Quoted 11 lines

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/

#1 lore raw

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

Quoted 1 line

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

#2 lore raw
Quoted 5 lines · Joerg Platte

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

Quoted 1 line

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

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#3 lore raw

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

Quoted 3 lines

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